|
libwebsockets
Lightweight C library for HTML5 websockets
|
#include <stdint.h>#include <stddef.h>
Include dependency graph for lws-spi.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | lws_spi_desc |
| struct | lws_spi_ops |
Typedefs | |
| typedef int(* | lws_spi_cb_t) (void *opaque) |
| typedef struct lws_spi_desc | lws_spi_desc_t |
| typedef struct lws_spi_ops | lws_spi_ops_t |
Enumerations | |
| enum | { LWSSPIMODE_CPOL = (1 << 0) , LWSSPIMODE_CPHA = (1 << 1) , LWS_SPI_BUSMODE_CLK_IDLE_LOW_SAMP_RISING = 0 , LWS_SPI_BUSMODE_CLK_IDLE_HIGH_SAMP_RISING = LWSSPIMODE_CPOL , LWS_SPI_BUSMODE_CLK_IDLE_LOW_SAMP_FALLING = LWSSPIMODE_CPHA , LWS_SPI_BUSMODE_CLK_IDLE_HIGH_SAMP_FALLING , LWS_SPI_TXN_HALF_DUPLEX_DISCRETE = 0 , LWS_SPI_FLAG_DATA_CONTINUE = (1 << 0) , LWS_SPI_FLAG_DC_CMD_IS_HIGH = (1 << 1) , LWS_SPI_FLAG_DMA_BOUNCE_NOT_NEEDED = (1 << 2) } |
Functions | |
| LWS_VISIBLE LWS_EXTERN int | lws_spi_table_issue (const lws_spi_ops_t *spi_ops, uint32_t flags, const uint8_t *p, size_t len) |
| LWS_VISIBLE LWS_EXTERN int | lws_spi_readback (const lws_spi_ops_t *spi_ops, uint32_t flags, const uint8_t *p, size_t len, uint8_t *rb, size_t rb_len) |
| struct lws_spi_desc |
| struct lws_spi_ops |
Collaboration diagram for lws_spi_ops:| Data Fields | ||
|---|---|---|
| int(*)(const struct lws_spi_ops *ctx) | init | |
| int(*)(const struct lws_spi_ops *ctx, const lws_spi_desc_t *desc) | queue | |
| void *(*)(const struct lws_spi_ops *ctx, size_t size) | alloc_dma | |
| void(*)(const struct lws_spi_ops *ctx, void **p) | free_dma | |
| int(*)(const struct lws_spi_ops *ctx) | in_flight | |
| uint32_t | spi_clk_hz | |
| uint8_t | bus_mode | |
| typedef struct lws_spi_desc lws_spi_desc_t |
| typedef struct lws_spi_ops lws_spi_ops_t |
| anonymous enum |
Definition at line 39 of file lws-spi.h.
| LWS_VISIBLE LWS_EXTERN int lws_spi_table_issue | ( | const lws_spi_ops_t * | spi_ops, |
| uint32_t | flags, | ||
| const uint8_t * | p, | ||
| size_t | len ) |
References LWS_EXTERN, and LWS_VISIBLE.
| LWS_VISIBLE LWS_EXTERN int lws_spi_readback | ( | const lws_spi_ops_t * | spi_ops, |
| uint32_t | flags, | ||
| const uint8_t * | p, | ||
| size_t | len, | ||
| uint8_t * | rb, | ||
| size_t | rb_len ) |