libwebsockets
Lightweight C library for HTML5 websockets
|
Go to the source code of this file.
Data Structures | |
struct | lws_bb_i2c |
Macros | |
#define | lws_bb_i2c_ops |
Typedefs | |
typedef struct lws_bb_i2c | lws_bb_i2c_t |
Functions | |
int | lws_bb_i2c_init (const lws_i2c_ops_t *octx) |
int | lws_bb_i2c_start (const lws_i2c_ops_t *octx) |
void | lws_bb_i2c_stop (const lws_i2c_ops_t *octx) |
int | lws_bb_i2c_write (const lws_i2c_ops_t *octx, uint8_t data) |
int | lws_bb_i2c_read (const lws_i2c_ops_t *octx) |
void | lws_bb_i2c_set_ack (const lws_i2c_ops_t *octx, int ack) |
struct lws_bb_i2c |
Definition at line 28 of file lws-bb-i2c.h.
Data Fields | ||
---|---|---|
lws_i2c_ops_t | bb_ops | |
_lws_plat_gpio_t | scl | |
_lws_plat_gpio_t | sda | |
const lws_gpio_ops_t * | gpio | |
void(*)(void) | delay |
#define lws_bb_i2c_ops |
Definition at line 40 of file lws-bb-i2c.h.
typedef struct lws_bb_i2c lws_bb_i2c_t |
int lws_bb_i2c_init | ( | const lws_i2c_ops_t * | octx | ) |
int lws_bb_i2c_start | ( | const lws_i2c_ops_t * | octx | ) |
void lws_bb_i2c_stop | ( | const lws_i2c_ops_t * | octx | ) |
int lws_bb_i2c_write | ( | const lws_i2c_ops_t * | octx, |
uint8_t | data ) |
int lws_bb_i2c_read | ( | const lws_i2c_ops_t * | octx | ) |
void lws_bb_i2c_set_ack | ( | const lws_i2c_ops_t * | octx, |
int | ack ) |