|
MCP2210 Library
An Open Source MCP2210 Library for Linux.
|
#include <mcp2210.h>
Public Attributes | |
| GPPin | GP [9] |
| unsigned int | RemoteWakeUpEnabled |
| unsigned int | DedicatedFunctionInterruptPinMode |
| unsigned int | SPIBusReleaseMode |
| unsigned int | NVRamChipParamAccessControl |
| char | password [8] |
| int | ErrorCode |
Chip settings definition
| unsigned int ChipSettingsDef::DedicatedFunctionInterruptPinMode |
Dedicated function mode
B100 - count high pulses B011 - count low pulses B010 - count rising edges B001 - count falling edges B000 - no interrupt counting
General purpose I/O pin 0...8
| unsigned int ChipSettingsDef::NVRamChipParamAccessControl |
NVRAM chip parameters access control
0x00 - Chip settings not protected 0x01 - Chip settings protected by password access 0x80 - Chip settings permanently locked
| char ChipSettingsDef::password[8] |
New password charecters 0..7
When the password does not need to be changed, the fields must be filled with 0.
| unsigned int ChipSettingsDef::RemoteWakeUpEnabled |
Remote wake-up enabled/disabled 0 - Disabled 1 - Enabled
| unsigned int ChipSettingsDef::SPIBusReleaseMode |
SPI bus release enable
0 - SPI bus is released between transfers 1 - SPI bus is not released by the MCP2210 between transfers