libwebsockets
Lightweight C library for HTML5 websockets
lws-bb-spi.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_bb_spi
 

Macros

#define LWSBBSPI_FLAG_USE_NCMD3   (1 << 7)
 
#define LWSBBSPI_FLAG_USE_NCMD2   (1 << 6)
 
#define LWSBBSPI_FLAG_USE_NCMD1   (1 << 5)
 
#define LWSBBSPI_FLAG_USE_NCMD0   (1 << 4)
 
#define LWSBBSPI_FLAG_USE_NCS3   (1 << 3)
 
#define LWSBBSPI_FLAG_USE_NCS2   (1 << 2)
 
#define LWSBBSPI_FLAG_USE_NCS1   (1 << 1)
 
#define LWSBBSPI_FLAG_USE_NCS0   (1 << 0)
 
#define LWS_SPI_BB_MAX_CH   4
 
#define lws_bb_spi_ops
 

Typedefs

typedef struct lws_bb_spi lws_bb_spi_t
 

Functions

int lws_bb_spi_init (const lws_spi_ops_t *octx)
 
int lws_bb_spi_queue (const lws_spi_ops_t *octx, const lws_spi_desc_t *desc)
 

Data Structure Documentation

◆ lws_bb_spi

struct lws_bb_spi

Definition at line 39 of file lws-bb-spi.h.

+ Collaboration diagram for lws_bb_spi:
Data Fields
lws_spi_ops_t bb_ops
const lws_gpio_ops_t * gpio
_lws_plat_gpio_t clk
_lws_plat_gpio_t ncs[LWS_SPI_BB_MAX_CH]
_lws_plat_gpio_t ncmd[LWS_SPI_BB_MAX_CH]
_lws_plat_gpio_t mosi
_lws_plat_gpio_t miso
uint8_t unit
uint8_t flags

Macro Definition Documentation

◆ LWSBBSPI_FLAG_USE_NCMD3

#define LWSBBSPI_FLAG_USE_NCMD3   (1 << 7)

Definition at line 28 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCMD2

#define LWSBBSPI_FLAG_USE_NCMD2   (1 << 6)

Definition at line 29 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCMD1

#define LWSBBSPI_FLAG_USE_NCMD1   (1 << 5)

Definition at line 30 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCMD0

#define LWSBBSPI_FLAG_USE_NCMD0   (1 << 4)

Definition at line 31 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCS3

#define LWSBBSPI_FLAG_USE_NCS3   (1 << 3)

Definition at line 32 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCS2

#define LWSBBSPI_FLAG_USE_NCS2   (1 << 2)

Definition at line 33 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCS1

#define LWSBBSPI_FLAG_USE_NCS1   (1 << 1)

Definition at line 34 of file lws-bb-spi.h.

◆ LWSBBSPI_FLAG_USE_NCS0

#define LWSBBSPI_FLAG_USE_NCS0   (1 << 0)

Definition at line 35 of file lws-bb-spi.h.

◆ LWS_SPI_BB_MAX_CH

#define LWS_SPI_BB_MAX_CH   4

Definition at line 37 of file lws-bb-spi.h.

◆ lws_bb_spi_ops

#define lws_bb_spi_ops
Value:
.init = lws_bb_spi_init, \
int lws_bb_spi_queue(const lws_spi_ops_t *octx, const lws_spi_desc_t *desc)
int lws_bb_spi_init(const lws_spi_ops_t *octx)

Definition at line 56 of file lws-bb-spi.h.

Typedef Documentation

◆ lws_bb_spi_t

typedef struct lws_bb_spi lws_bb_spi_t

Function Documentation

◆ lws_bb_spi_init()

int lws_bb_spi_init ( const lws_spi_ops_t octx)

◆ lws_bb_spi_queue()

int lws_bb_spi_queue ( const lws_spi_ops_t octx,
const lws_spi_desc_t desc 
)