diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-02 13:30:05 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-02 13:30:05 -0700 |
commit | 255baf6db201dcdf8da017d55c577622f217a888 (patch) | |
tree | 905a389bc9fdf072cbdf7e9f21b2b936881eb620 /libhw_generic/include/libhw/generic/spi.h | |
parent | 188ac62a0c0f5519f5d45519fa7d224cb25305c6 (diff) | |
parent | 5a84ba2361cecade0343b88f696b6a63454cc3c6 (diff) |
Merge branch 'lukeshu/iov'
Diffstat (limited to 'libhw_generic/include/libhw/generic/spi.h')
-rw-r--r-- | libhw_generic/include/libhw/generic/spi.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libhw_generic/include/libhw/generic/spi.h b/libhw_generic/include/libhw/generic/spi.h index aeeca37..a4dbcae 100644 --- a/libhw_generic/include/libhw/generic/spi.h +++ b/libhw_generic/include/libhw/generic/spi.h @@ -9,7 +9,7 @@ #include <stddef.h> /* for size_t */ -#include <libobj/obj.h> +#include <libhw/generic/io.h> enum spi_mode { SPI_MODE_0 = 0, /* clk_polarity=0 (idle low), clk_phase=0 (sample on rise) */ @@ -18,12 +18,6 @@ enum spi_mode { SPI_MODE_3 = 3, /* clk_polarity=1 (idle high), clk_phase=1 (sample on fall) */ }; -struct bidi_iovec { - void *iov_read_dst; - void *iov_write_src; - size_t iov_len; -}; - /* This API assumes that an SPI frame is a multiple of 8-bits. * * It is my understanding that this is a common constraint of SPI @@ -37,7 +31,7 @@ struct bidi_iovec { * non-multiple-of-8 number of bits. */ #define spi_LO_IFACE \ - LO_FUNC(void, readwritev, const struct bidi_iovec *iov, int iovcnt) + LO_NEST(io_duplex_readwriter) LO_INTERFACE(spi) #endif /* _LIBHW_GENERIC_SPI_H_ */ |