libeasymcp2221 2.0.3
Public Attributes | List of all members
mcp2221_pin_functions_t Struct Reference

Batch configuration for GP0 through GP3. More...

#include <mcp2221_pin.h>

Public Attributes

mcp2221_pin_function_t gp [4]
 Desired function for each GP pin. More...
 
int out [4]
 GPIO output value associated with each GP pin. More...
 

Detailed Description

Batch configuration for GP0 through GP3.

Array index 0 through 3 corresponds to GP0 through GP3.

Definition at line 59 of file mcp2221_pin.h.

Member Data Documentation

◆ gp

mcp2221_pin_function_t mcp2221_pin_functions_t::gp[4]

Desired function for each GP pin.

Use MCP2221_PIN_FUNC_KEEP to leave a pin unchanged.

Definition at line 65 of file mcp2221_pin.h.

◆ out

int mcp2221_pin_functions_t::out[4]

GPIO output value associated with each GP pin.

Every entry must be either 0 or 1. A value of 1 is valid only when the corresponding gp entry is MCP2221_PIN_FUNC_GPIO_OUT. For other pin functions, including MCP2221_PIN_FUNC_KEEP, the value must be 0.

Definition at line 74 of file mcp2221_pin.h.


The documentation for this struct was generated from the following file: