17 #define TWG_MAX_BUF 512 22 typedef struct wg_data_T {
26 uint8_t buff[ TWG_MAX_BUF/8];
35 void null_sock(
void) { memset( this->sock, 0, 64); }
42 int x_open(
const char *_sock,
const char *_what,
int _flags);
45 if ( this->f_rw) close( this->f_rw);
55 ~
CWg(
void) { this->x_close(); }
61 int init(
const char *_sock);
64 inline char *
cur_sock(
void) {
return( this->sock); }
74 int mode_set( uint8_t _mode);
82 int out0_set( uint8_t _val);
90 int conr_set( uint8_t _val);
I2C bus name to # mapping structure.
char * cur_sock(void)
Get current socket name.
Definition: CWg.h:64
Wiegand Tibbit#08 I/O class.
Definition: CWg.h:31