|
libeasymcp2221 2.0.3
|
Caller-owned I2C target context. More...
#include <mcp2221_i2c_slave.h>
Public Attributes | |
| mcp2221_t * | mcp |
| uint8_t | addr |
| int | reg_bytes |
| mcp2221_i2c_byte_order_t | reg_byteorder |
Caller-owned I2C target context.
This is a public value type, not an opaque handle. Applications may allocate it statically, on the stack, or as part of another structure. Initialize it with mcp2221_i2c_slave_init() before using any other slave helper.
The context borrows the underlying mcp2221_t handle; destroying or overwriting the context does not close the MCP2221 device.
Definition at line 46 of file mcp2221_i2c_slave.h.
| uint8_t mcp2221_i2c_slave::addr |
7-bit I2C target address.
Definition at line 48 of file mcp2221_i2c_slave.h.
| mcp2221_t* mcp2221_i2c_slave::mcp |
Borrowed MCP2221 device handle.
Definition at line 47 of file mcp2221_i2c_slave.h.
| mcp2221_i2c_byte_order_t mcp2221_i2c_slave::reg_byteorder |
Default register-address byte order.
Definition at line 50 of file mcp2221_i2c_slave.h.
| int mcp2221_i2c_slave::reg_bytes |
Default register-address width, from 1 to 4 bytes.
Definition at line 49 of file mcp2221_i2c_slave.h.