libwebsockets
Lightweight C library for HTML5 websockets
Loading...
Searching...
No Matches
lws-i2c.h File Reference
#include <stdint.h>
#include <stddef.h>
+ Include dependency graph for lws-i2c.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_i2c_ops
 

Typedefs

typedef struct lws_i2c_ops lws_i2c_ops_t
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_i2c_command (const lws_i2c_ops_t *ctx, uint8_t ads7, uint8_t c)
 
LWS_VISIBLE LWS_EXTERN int lws_i2c_command_list (const lws_i2c_ops_t *ctx, uint8_t ads7, const uint8_t *buf, size_t len)
 

Data Structure Documentation

◆ lws_i2c_ops

struct lws_i2c_ops

Definition at line 34 of file lws-i2c.h.

+ Collaboration diagram for lws_i2c_ops:
Data Fields
int(*)(const struct lws_i2c_ops *ctx) init
int(*)(const struct lws_i2c_ops *ctx) start
void(*)(const struct lws_i2c_ops *ctx) stop
int(*)(const struct lws_i2c_ops *ctx, uint8_t data) write
int(*)(const struct lws_i2c_ops *ctx) read
void(*)(const struct lws_i2c_ops *octx, int ack) set_ack

Typedef Documentation

◆ lws_i2c_ops_t

typedef struct lws_i2c_ops lws_i2c_ops_t

Function Documentation

◆ lws_i2c_command()

LWS_VISIBLE LWS_EXTERN int lws_i2c_command ( const lws_i2c_ops_t * ctx,
uint8_t ads7,
uint8_t c )

References LWS_EXTERN, and LWS_VISIBLE.

◆ lws_i2c_command_list()

LWS_VISIBLE LWS_EXTERN int lws_i2c_command_list ( const lws_i2c_ops_t * ctx,
uint8_t ads7,
const uint8_t * buf,
size_t len )