Core MCP2221 device and I2C master API.
struct mcp2221_device mcp2221_t
Opaque MCP2221 device handle.
mcp2221_error_code_t
Error codes used by libeasymcp2221.
#define MCP2221_API
Export or import a public libeasymcp2221 API symbol.
#define MCP2221_END_DECLS
End a block started by MCP2221_BEGIN_DECLS.
#define MCP2221_BEGIN_DECLS
Begin a block of declarations using C linkage.
mcp2221_error_code_t mcp2221_pin_set_function(mcp2221_t *dev, mcp2221_gpio_pin_t pin, mcp2221_pin_function_t function)
Set the function of one GP pin.
mcp2221_error_code_t mcp2221_pin_set_functions(mcp2221_t *dev, const mcp2221_pin_functions_t *cfg)
Configure the functions of GP0 through GP3 in one operation.
mcp2221_gpio_pin_t
MCP2221 general-purpose pin identifiers.
mcp2221_pin_function_t
High-level pin functions.
@ MCP2221_PIN_FUNC_GPIO_OUT
@ MCP2221_PIN_FUNC_DEDICATED
@ MCP2221_PIN_FUNC_GPIO_IN
Batch configuration for GP0 through GP3.