API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
tsmart_dio_config_t Struct Reference

Digital Input/Output configuration structure. More...

#include <tsmart_dio.h>

Data Fields

tsmart_dio_mode_t mode
 
tsmart_dio_irq_t irq_mode
 

Detailed Description

Digital Input/Output configuration structure.

Examples:
db_dio.c, dio_read.c, freertos_advance.c, freertos_basic.c, modbus_slave_rtu.c, msal_current.c, nfc_read.c, pwr.c, and rtc.c.

Field Documentation

tsmart_dio_irq_t irq_mode
  Configures for Digital Input/Output Interruption with one

of the following values:

  • TSMART_DIO_IRQ_NULL
  • TSMART_DIO_IRQ_RISING
  • TSMART_DIO_IRQ_FALLING
  • TSMART_DIO_IRQ_RISING_FALLING
Examples:
db_dio.c, dio_read.c, freertos_advance.c, freertos_basic.c, modbus_slave_rtu.c, nfc_read.c, pwr.c, and rtc.c.

Configures the Digital Input/Output operation mode with one of the following values:

  • TSMART_DIO_IN_FLOATING
  • TSMART_DIO_IPD
  • TSMART_DIO_IPU
  • TSMART_DIO_OD
  • TSMART_DIO_PP
Examples:
db_dio.c, dio_read.c, freertos_advance.c, freertos_basic.c, modbus_slave_rtu.c, nfc_read.c, pwr.c, and rtc.c.