6#ifndef MCP2221_FLASH_INFO_H
7#define MCP2221_FLASH_INFO_H
24 uint8_t chip_settings[60];
27 uint8_t gp_settings[60];
30 uint8_t usb_manufacturer[60];
33 uint8_t usb_product[60];
36 uint8_t usb_serial[60];
39 uint8_t usb_factory_serial[60];
47 char usb_manufacturer_str[128];
50 char usb_product_str[128];
53 char usb_serial_str[128];
61 char usb_factory_serial_str[32];
99 mcp2221_t *dev,
char *serial,
size_t serial_size);
116 mcp2221_t *dev,
char *serial,
size_t serial_size);
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_flash_get_usb_serial(mcp2221_t *dev, char *serial, size_t serial_size)
Read the persistent USB serial number from flash.
mcp2221_error_code_t mcp2221_flash_get_factory_serial(mcp2221_t *dev, char *serial, size_t serial_size)
Read the read-only factory/chip serial number from flash.
mcp2221_error_code_t mcp2221_flash_save_config(mcp2221_t *dev)
Save the current runtime configuration to persistent flash.
mcp2221_error_code_t mcp2221_flash_read_info(mcp2221_t *dev, mcp2221_flash_info_t *info)
Read all public flash-information sections.
Snapshot of the public MCP2221 flash-information sections.