|
enum | tr_hal_pin_mode_t {
TR_HAL_GPIO_MODE_GPIO = 0
,
TR_HAL_GPIO_MODE_QSPI0 = 1
,
TR_HAL_GPIO_MODE_I2C = 4
,
TR_HAL_GPIO_MODE_UART = 6
,
TR_HAL_GPIO_MODE_I2S = 4
,
TR_HAL_GPIO_MODE_PWM = 4
,
TR_HAL_GPIO_MODE_PWM0 = 1
,
TR_HAL_GPIO_MODE_PWM1 = 2
,
TR_HAL_GPIO_MODE_PWM2 = 3
,
TR_HAL_GPIO_MODE_PWM3 = 5
,
TR_HAL_GPIO_MODE_PWM4 = 7
,
TR_HAL_GPIO_MODE_SPI0 = 1
,
TR_HAL_GPIO_MODE_SPI1 = 5
,
TR_HAL_GPIO_MODE_SPI0_CS1 = 2
,
TR_HAL_GPIO_MODE_SPI0_CS2 = 3
,
TR_HAL_GPIO_MODE_SPI0_CS3 = 6
,
TR_HAL_GPIO_MODE_MAX = 7
} |
| these are the pin MODEs to be passed to tr_hal_gpio_set_mode note that these are defined by the chip and cannot be changed see section 19.3.3 of datasheet More...
|
|
enum | tr_hal_direction_t {
TR_HAL_GPIO_DIRECTION_OUTPUT = 0
,
TR_HAL_GPIO_DIRECTION_INPUT = 1
} |
| values for setting the direction in the Trident HAL GPIO APIs More...
|
|
enum | tr_hal_level_t {
TR_HAL_GPIO_LEVEL_LOW = 0
,
TR_HAL_GPIO_LEVEL_HIGH = 1
} |
| values for setting the level in the Trident HAL GPIO APIs More...
|
|
enum | tr_hal_trigger_t {
TR_HAL_GPIO_TRIGGER_NONE = 0
,
TR_HAL_GPIO_TRIGGER_RISING_EDGE = 1
,
TR_HAL_GPIO_TRIGGER_FALLING_EDGE = 2
,
TR_HAL_GPIO_TRIGGER_EITHER_EDGE = 3
,
TR_HAL_GPIO_TRIGGER_LEVEL_LOW = 4
,
TR_HAL_GPIO_TRIGGER_LEVEL_HIGH = 5
} |
| values for setting the interrupt trigger in the Trident HAL GPIO APIs More...
|
|
enum | tr_hal_pullopt_t {
TR_HAL_PULLOPT_PULL_NONE = 0
,
TR_HAL_PULLOPT_PULL_DOWN_10K = 1
,
TR_HAL_PULLOPT_PULL_DOWN_100K = 2
,
TR_HAL_PULLOPT_PULL_DOWN_1M = 3
,
TR_HAL_PULLOPT_PULL_ALSO_NONE = 4
,
TR_HAL_PULLOPT_PULL_UP_10K = 5
,
TR_HAL_PULLOPT_PULL_UP_100K = 6
,
TR_HAL_PULLOPT_PULL_UP_1M = 7
,
TR_HAL_PULLOPT_MAX_VALUE = 7
} |
| values for setting the pull option in the Trident HAL GPIO APIs NOTE: these CANNOT be changed. These are in the chip data sheet THESE ARE NOT ARBITRARY More...
|
|
enum | tr_hal_debounce_time_t {
TR_HAL_DEBOUNCE_TIME_32_CLOCKS = 0
,
TR_HAL_DEBOUNCE_TIME_64_CLOCKS = 1
,
TR_HAL_DEBOUNCE_TIME_128_CLOCKS = 2
,
TR_HAL_DEBOUNCE_TIME_256_CLOCKS = 3
,
TR_HAL_DEBOUNCE_TIME_512_CLOCKS = 4
,
TR_HAL_DEBOUNCE_TIME_1024_CLOCKS = 5
,
TR_HAL_DEBOUNCE_TIME_2048_CLOCKS = 6
,
TR_HAL_DEBOUNCE_TIME_4096_CLOCKS = 7
,
TR_HAL_DEBOUNCE_TIME_MAX_VALUE = 7
} |
| values for setting the debounce time register each individual GPIO can be set to enable or disable debounce but the debounce time is set globally for ALL GPIOs. NOTE: these CANNOT be changed. These come from the chip data sheet More...
|
|
enum | tr_hal_drive_strength_t {
TR_HAL_DRIVE_STRENGTH_4_MA = 0
,
TR_HAL_DRIVE_STRENGTH_10_MA = 1
,
TR_HAL_DRIVE_STRENGTH_14_MA = 2
,
TR_HAL_DRIVE_STRENGTH_20_MA = 3
,
TR_HAL_DRIVE_STRENGTH_MAX = 3
,
TR_HAL_DRIVE_STRENGTH_DEFAULT = 3
} |
| values for setting the GPIO drive strength in the Trident HAL APIs NOTE: these CANNOT be changed. These come from the chip data sheet More...
|
|
enum | tr_hal_wake_mode_t {
TR_HAL_WAKE_MODE_NONE = 0
,
TR_HAL_WAKE_MODE_INPUT_LOW = 1
,
TR_HAL_WAKE_MODE_INPUT_HIGH = 2
} |
| values for setting the GPIO wake mode More...
|
|
enum | tr_hal_gpio_event_t {
TR_HAL_GPIO_EVENT_NONE = 0
,
TR_HAL_GPIO_EVENT_INPUT_TRIGGERED = 1
} |
| GPIO interrupt callback functions. More...
|
|