Module: CP2112::GPIO_Definitions

Defined in:
lib/cp2112.rb

Constant Summary collapse

HID_SMBUS_DIRECTION_INPUT =

GPIO Pin Direction Bit Value

0
HID_SMBUS_DIRECTION_OUTPUT =
1
HID_SMBUS_MODE_OPEN_DRAIN =

GPIO Pin Mode Bit Value

0
HID_SMBUS_MODE_PUSH_PULL =
1
HID_SMBUS_MASK_FUNCTION_GPIO_7_CLK =

GPIO Function Bitmask

0x01
HID_SMBUS_MASK_FUNCTION_GPIO_0_TXT =
0x02
HID_SMBUS_MASK_FUNCTION_GPIO_1_RXT =
0x04
HID_SMBUS_GPIO_FUNCTION =

GPIO Function Bit Value

0
HID_SMBUS_SPECIAL_FUNCTION =
1
HID_SMBUS_MASK_GPIO_0 =

GPIO Pin Bitmask

0x01
HID_SMBUS_MASK_GPIO_1 =
0x02
HID_SMBUS_MASK_GPIO_2 =
0x04
HID_SMBUS_MASK_GPIO_3 =
0x08
HID_SMBUS_MASK_GPIO_4 =
0x10
HID_SMBUS_MASK_GPIO_5 =
0x20
HID_SMBUS_MASK_GPIO_6 =
0x40
HID_SMBUS_MASK_GPIO_7 =
0x80