libeasymcp2221 2.0.3
Classes | Functions
mcp2221_flash_settings.h File Reference

Raw persistent chip and GP flash settings. More...

#include <stdint.h>
#include "mcp2221.h"
Include dependency graph for mcp2221_flash_settings.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mcp2221_flash_settings_t
 Raw persistent chip-settings and GP-settings snapshot. More...
 

Functions

mcp2221_error_code_t mcp2221_flash_get_settings (mcp2221_t *dev, mcp2221_flash_settings_t *st)
 Read the persistent chip-settings and GP-settings flash sections. More...
 

Detailed Description

Raw persistent chip and GP flash settings.

Definition in file mcp2221_flash_settings.h.

Function Documentation

◆ mcp2221_flash_get_settings()

mcp2221_error_code_t mcp2221_flash_get_settings ( mcp2221_t dev,
mcp2221_flash_settings_t st 
)

Read the persistent chip-settings and GP-settings flash sections.

Parameters
[in]devOpen MCP2221 device handle.
[out]stReceives both raw 60-byte flash sections.
Returns
MCP2221_ERR_OK on success, MCP2221_ERR_INVALID for invalid arguments, or an error returned by mcp2221_flash_read().