mirror of https://github.com/arendst/Tasmota.git
302 lines
7.6 KiB
C
302 lines
7.6 KiB
C
// Enum values for GPIOs
|
|
|
|
LOW
|
|
HIGH
|
|
|
|
INPUT
|
|
OUTPUT
|
|
PULLUP
|
|
INPUT_PULLUP
|
|
PULLDOWN
|
|
INPUT_PULLDOWN
|
|
OPEN_DRAIN
|
|
OUTPUT_OPEN_DRAIN
|
|
DAC = -1 // special case
|
|
|
|
RISING
|
|
FALLING
|
|
CHANGE
|
|
|
|
MAX_RMT
|
|
|
|
NONE = GPIO_NONE
|
|
KEY1 = GPIO_KEY1
|
|
KEY1_NP = GPIO_KEY1_NP
|
|
KEY1_INV = GPIO_KEY1_INV
|
|
KEY1_INV_NP = GPIO_KEY1_INV_NP
|
|
SWT1 = GPIO_SWT1
|
|
SWT1_NP = GPIO_SWT1_NP
|
|
REL1 = GPIO_REL1
|
|
REL1_INV = GPIO_REL1_INV
|
|
LED1 = GPIO_LED1
|
|
LED1_INV = GPIO_LED1_INV
|
|
CNTR1 = GPIO_CNTR1
|
|
CNTR1_NP = GPIO_CNTR1_NP
|
|
PWM1 = GPIO_PWM1
|
|
PWM1_INV = GPIO_PWM1_INV
|
|
BUZZER = GPIO_BUZZER
|
|
BUZZER_INV = GPIO_BUZZER_INV
|
|
LEDLNK = GPIO_LEDLNK
|
|
LEDLNK_INV = GPIO_LEDLNK_INV
|
|
I2C_SCL = GPIO_I2C_SCL
|
|
I2C_SDA = GPIO_I2C_SDA
|
|
SPI_MISO = GPIO_SPI_MISO
|
|
SPI_MOSI = GPIO_SPI_MOSI
|
|
SPI_CLK = GPIO_SPI_CLK
|
|
SPI_CS = GPIO_SPI_CS
|
|
SPI_DC = GPIO_SPI_DC
|
|
SSPI_MISO = GPIO_SSPI_MISO
|
|
SSPI_MOSI = GPIO_SSPI_MOSI
|
|
SSPI_SCLK = GPIO_SSPI_SCLK
|
|
SSPI_CS = GPIO_SSPI_CS
|
|
SSPI_DC = GPIO_SSPI_DC
|
|
BACKLIGHT = GPIO_BACKLIGHT
|
|
OLED_RESET = GPIO_OLED_RESET
|
|
IRSEND = GPIO_IRSEND
|
|
IRRECV = GPIO_IRRECV
|
|
RFSEND = GPIO_RFSEND
|
|
RFRECV = GPIO_RFRECV
|
|
DHT11 = GPIO_DHT11
|
|
DHT22 = GPIO_DHT22
|
|
SI7021 = GPIO_SI7021
|
|
DHT11_OUT = GPIO_DHT11_OUT
|
|
DSB = GPIO_DSB
|
|
DSB_OUT = GPIO_DSB_OUT
|
|
WS2812 = GPIO_WS2812
|
|
MHZ_TXD = GPIO_MHZ_TXD
|
|
MHZ_RXD = GPIO_MHZ_RXD
|
|
CM11_TXD = GPIO_CM11_TXD
|
|
CM11_RXD = GPIO_CM11_RXD
|
|
PZEM0XX_TX = GPIO_PZEM0XX_TX
|
|
PZEM004_RX = GPIO_PZEM004_RX
|
|
PZEM016_RX = GPIO_PZEM016_RX
|
|
PZEM017_RX = GPIO_PZEM017_RX
|
|
SAIR_TX = GPIO_SAIR_TX
|
|
SAIR_RX = GPIO_SAIR_RX
|
|
PMS5003_TX = GPIO_PMS5003_TX
|
|
PMS5003_RX = GPIO_PMS5003_RX
|
|
SDS0X1_TX = GPIO_SDS0X1_TX
|
|
SDS0X1_RX = GPIO_SDS0X1_RX
|
|
SBR_TX = GPIO_SBR_TX
|
|
SBR_RX = GPIO_SBR_RX
|
|
SR04_TRIG = GPIO_SR04_TRIG
|
|
SR04_ECHO = GPIO_SR04_ECHO
|
|
SDM120_TX = GPIO_SDM120_TX
|
|
SDM120_RX = GPIO_SDM120_RX
|
|
SDM630_TX = GPIO_SDM630_TX
|
|
SDM630_RX = GPIO_SDM630_RX
|
|
TM1638CLK = GPIO_TM1638CLK
|
|
TM1638DIO = GPIO_TM1638DIO
|
|
TM1638STB = GPIO_TM1638STB
|
|
MP3_DFR562 = GPIO_MP3_DFR562
|
|
HX711_SCK = GPIO_HX711_SCK
|
|
HX711_DAT = GPIO_HX711_DAT
|
|
TX2X_TXD_BLACK = GPIO_TX2X_TXD_BLACK
|
|
TUYA_TX = GPIO_TUYA_TX
|
|
TUYA_RX = GPIO_TUYA_RX
|
|
MGC3130_XFER = GPIO_MGC3130_XFER
|
|
MGC3130_RESET = GPIO_MGC3130_RESET
|
|
RF_SENSOR = GPIO_RF_SENSOR
|
|
AZ_TXD = GPIO_AZ_TXD
|
|
AZ_RXD = GPIO_AZ_RXD
|
|
MAX31855CS = GPIO_MAX31855CS
|
|
MAX31855CLK = GPIO_MAX31855CLK
|
|
MAX31855DO = GPIO_MAX31855DO
|
|
NRG_SEL = GPIO_NRG_SEL
|
|
NRG_SEL_INV = GPIO_NRG_SEL_INV
|
|
NRG_CF1 = GPIO_NRG_CF1
|
|
HLW_CF = GPIO_HLW_CF
|
|
HJL_CF = GPIO_HJL_CF
|
|
MCP39F5_TX = GPIO_MCP39F5_TX
|
|
MCP39F5_RX = GPIO_MCP39F5_RX
|
|
MCP39F5_RST = GPIO_MCP39F5_RST
|
|
PN532_TXD = GPIO_PN532_TXD
|
|
PN532_RXD = GPIO_PN532_RXD
|
|
SM16716_CLK = GPIO_SM16716_CLK
|
|
SM16716_DAT = GPIO_SM16716_DAT
|
|
SM16716_SEL = GPIO_SM16716_SEL
|
|
DI = GPIO_DI
|
|
DCKI = GPIO_DCKI
|
|
CSE7766_TX = GPIO_CSE7766_TX
|
|
CSE7766_RX = GPIO_CSE7766_RX
|
|
ARIRFRCV = GPIO_ARIRFRCV
|
|
ARIRFSEL = GPIO_ARIRFSEL
|
|
TXD = GPIO_TXD
|
|
RXD = GPIO_RXD
|
|
ROT1A = GPIO_ROT1A
|
|
ROT1B = GPIO_ROT1B
|
|
ADC_JOY = GPIO_ADC_JOY
|
|
SSPI_MAX31865_CS1 = GPIO_SSPI_MAX31865_CS1
|
|
HRE_CLOCK = GPIO_HRE_CLOCK
|
|
HRE_DATA = GPIO_HRE_DATA
|
|
ADE7953_IRQ = GPIO_ADE7953_IRQ
|
|
SOLAXX1_TX = GPIO_SOLAXX1_TX
|
|
SOLAXX1_RX = GPIO_SOLAXX1_RX
|
|
ZIGBEE_TX = GPIO_ZIGBEE_TX
|
|
ZIGBEE_RX = GPIO_ZIGBEE_RX
|
|
RDM6300_RX = GPIO_RDM6300_RX
|
|
IBEACON_TX = GPIO_IBEACON_TX
|
|
IBEACON_RX = GPIO_IBEACON_RX
|
|
A4988_DIR = GPIO_A4988_DIR
|
|
A4988_STP = GPIO_A4988_STP
|
|
A4988_ENA = GPIO_A4988_ENA
|
|
A4988_MS1 = GPIO_A4988_MS1
|
|
OUTPUT_HI = GPIO_OUTPUT_HI
|
|
OUTPUT_LO = GPIO_OUTPUT_LO
|
|
DDS2382_TX = GPIO_DDS2382_TX
|
|
DDS2382_RX = GPIO_DDS2382_RX
|
|
DDSU666_TX = GPIO_DDSU666_TX
|
|
DDSU666_RX = GPIO_DDSU666_RX
|
|
SM2135_CLK = GPIO_SM2135_CLK
|
|
SM2135_DAT = GPIO_SM2135_DAT
|
|
DEEPSLEEP = GPIO_DEEPSLEEP
|
|
EXS_ENABLE = GPIO_EXS_ENABLE
|
|
TASMOTACLIENT_TXD = GPIO_TASMOTACLIENT_TXD
|
|
TASMOTACLIENT_RXD = GPIO_TASMOTACLIENT_RXD
|
|
TASMOTACLIENT_RST = GPIO_TASMOTACLIENT_RST
|
|
TASMOTACLIENT_RST_INV = GPIO_TASMOTACLIENT_RST_INV
|
|
HPMA_RX = GPIO_HPMA_RX
|
|
HPMA_TX = GPIO_HPMA_TX
|
|
GPS_RX = GPIO_GPS_RX
|
|
GPS_TX = GPIO_GPS_TX
|
|
HM10_RX = GPIO_HM10_RX
|
|
HM10_TX = GPIO_HM10_TX
|
|
LE01MR_RX = GPIO_LE01MR_RX
|
|
LE01MR_TX = GPIO_LE01MR_TX
|
|
CC1101_GDO0 = GPIO_CC1101_GDO0
|
|
CC1101_GDO2 = GPIO_CC1101_GDO2
|
|
HRXL_RX = GPIO_HRXL_RX
|
|
ELECTRIQ_MOODL_TX = GPIO_ELECTRIQ_MOODL_TX
|
|
AS3935 = GPIO_AS3935
|
|
ADC_INPUT = GPIO_ADC_INPUT
|
|
ADC_TEMP = GPIO_ADC_TEMP
|
|
ADC_LIGHT = GPIO_ADC_LIGHT
|
|
ADC_BUTTON = GPIO_ADC_BUTTON
|
|
ADC_BUTTON_INV = GPIO_ADC_BUTTON_INV
|
|
ADC_RANGE = GPIO_ADC_RANGE
|
|
ADC_CT_POWER = GPIO_ADC_CT_POWER
|
|
WEBCAM_PWDN = GPIO_WEBCAM_PWDN
|
|
WEBCAM_RESET = GPIO_WEBCAM_RESET
|
|
WEBCAM_XCLK = GPIO_WEBCAM_XCLK
|
|
WEBCAM_SIOD = GPIO_WEBCAM_SIOD
|
|
WEBCAM_SIOC = GPIO_WEBCAM_SIOC
|
|
WEBCAM_DATA = GPIO_WEBCAM_DATA
|
|
WEBCAM_VSYNC = GPIO_WEBCAM_VSYNC
|
|
WEBCAM_HREF = GPIO_WEBCAM_HREF
|
|
WEBCAM_PCLK = GPIO_WEBCAM_PCLK
|
|
WEBCAM_PSCLK = GPIO_WEBCAM_PSCLK
|
|
WEBCAM_HSD = GPIO_WEBCAM_HSD
|
|
WEBCAM_PSRCS = GPIO_WEBCAM_PSRCS
|
|
BOILER_OT_RX = GPIO_BOILER_OT_RX
|
|
BOILER_OT_TX = GPIO_BOILER_OT_TX
|
|
WINDMETER_SPEED = GPIO_WINDMETER_SPEED
|
|
KEY1_TC = GPIO_KEY1_TC
|
|
BL0940_RX = GPIO_BL0940_RX
|
|
TCP_TX = GPIO_TCP_TX
|
|
TCP_RX = GPIO_TCP_RX
|
|
ETH_PHY_POWER = GPIO_ETH_PHY_POWER
|
|
ETH_PHY_MDC = GPIO_ETH_PHY_MDC
|
|
ETH_PHY_MDIO = GPIO_ETH_PHY_MDIO
|
|
TELEINFO_RX = GPIO_TELEINFO_RX
|
|
TELEINFO_ENABLE = GPIO_TELEINFO_ENABLE
|
|
LMT01 = GPIO_LMT01
|
|
IEM3000_TX = GPIO_IEM3000_TX
|
|
IEM3000_RX = GPIO_IEM3000_RX
|
|
ZIGBEE_RST = GPIO_ZIGBEE_RST
|
|
DYP_RX = GPIO_DYP_RX
|
|
MIEL_HVAC_TX = GPIO_MIEL_HVAC_TX
|
|
MIEL_HVAC_RX = GPIO_MIEL_HVAC_RX
|
|
WE517_TX = GPIO_WE517_TX
|
|
WE517_RX = GPIO_WE517_RX
|
|
AS608_TX = GPIO_AS608_TX
|
|
AS608_RX = GPIO_AS608_RX
|
|
SHELLY_DIMMER_BOOT0 = GPIO_SHELLY_DIMMER_BOOT0
|
|
SHELLY_DIMMER_RST_INV = GPIO_SHELLY_DIMMER_RST_INV
|
|
RC522_RST = GPIO_RC522_RST
|
|
P9813_CLK = GPIO_P9813_CLK
|
|
P9813_DAT = GPIO_P9813_DAT
|
|
OPTION_A = GPIO_OPTION_A
|
|
FTC532 = GPIO_FTC532
|
|
RC522_CS = GPIO_RC522_CS
|
|
NRF24_CS = GPIO_NRF24_CS
|
|
NRF24_DC = GPIO_NRF24_DC
|
|
ILI9341_CS = GPIO_ILI9341_CS
|
|
ILI9341_DC = GPIO_ILI9341_DC
|
|
ILI9488_CS = GPIO_ILI9488_CS
|
|
EPAPER29_CS = GPIO_EPAPER29_CS
|
|
EPAPER42_CS = GPIO_EPAPER42_CS
|
|
SSD1351_CS = GPIO_SSD1351_CS
|
|
RA8876_CS = GPIO_RA8876_CS
|
|
ST7789_CS = GPIO_ST7789_CS
|
|
ST7789_DC = GPIO_ST7789_DC
|
|
SSD1331_CS = GPIO_SSD1331_CS
|
|
SSD1331_DC = GPIO_SSD1331_DC
|
|
SDCARD_CS = GPIO_SDCARD_CS
|
|
ROT1A_NP = GPIO_ROT1A_NP
|
|
ROT1B_NP = GPIO_ROT1B_NP
|
|
ADC_PH = GPIO_ADC_PH
|
|
BS814_CLK = GPIO_BS814_CLK
|
|
BS814_DAT = GPIO_BS814_DAT
|
|
WIEGAND_D0 = GPIO_WIEGAND_D0
|
|
WIEGAND_D1 = GPIO_WIEGAND_D1
|
|
NEOPOOL_TX = GPIO_NEOPOOL_TX
|
|
NEOPOOL_RX = GPIO_NEOPOOL_RX
|
|
SDM72_TX = GPIO_SDM72_TX
|
|
SDM72_RX = GPIO_SDM72_RX
|
|
TM1637CLK = GPIO_TM1637CLK
|
|
TM1637DIO = GPIO_TM1637DIO
|
|
PROJECTOR_CTRL_TX = GPIO_PROJECTOR_CTRL_TX
|
|
PROJECTOR_CTRL_RX = GPIO_PROJECTOR_CTRL_RX
|
|
SSD1351_DC = GPIO_SSD1351_DC
|
|
XPT2046_CS = GPIO_XPT2046_CS
|
|
CSE7761_TX = GPIO_CSE7761_TX
|
|
CSE7761_RX = GPIO_CSE7761_RX
|
|
VL53LXX_XSHUT1 = GPIO_VL53LXX_XSHUT1
|
|
MAX7219CLK = GPIO_MAX7219CLK
|
|
MAX7219DIN = GPIO_MAX7219DIN
|
|
MAX7219CS = GPIO_MAX7219CS
|
|
TFMINIPLUS_TX = GPIO_TFMINIPLUS_TX
|
|
TFMINIPLUS_RX = GPIO_TFMINIPLUS_RX
|
|
ZEROCROSS = GPIO_ZEROCROSS
|
|
HALLEFFECT = GPIO_HALLEFFECT
|
|
EPD_DATA = GPIO_EPD_DATA
|
|
INPUT = GPIO_INPUT
|
|
KEY1_PD = GPIO_KEY1_PD
|
|
KEY1_INV_PD = GPIO_KEY1_INV_PD
|
|
SWT1_PD = GPIO_SWT1_PD
|
|
I2S_OUT_DATA = GPIO_I2S_OUT_DATA
|
|
I2S_OUT_CLK = GPIO_I2S_OUT_CLK
|
|
I2S_OUT_SLCT = GPIO_I2S_OUT_SLCT
|
|
I2S_IN_DATA = GPIO_I2S_IN_DATA
|
|
I2S_IN_CLK = GPIO_I2S_IN_CLK
|
|
I2S_IN_SLCT = GPIO_I2S_IN_SLCT
|
|
INTERRUPT = GPIO_INTERRUPT
|
|
|
|
MCP2515_CS = GPIO_MCP2515_CS
|
|
|
|
HRG15_TX = GPIO_HRG15_TX, HRG15_RX = GPIO_HRG15_RX
|
|
VINDRIKTNING_RX = GPIO_VINDRIKTNING_RX
|
|
BL0939_RX = GPIO_BL0939_RX
|
|
BL0942_RX = GPIO_BL0942_RX
|
|
HM330X_SET = GPIO_HM330X_SET
|
|
HEARTBEAT = GPIO_HEARTBEAT
|
|
HEARTBEAT_INV = GPIO_HEARTBEAT_INV
|
|
|
|
SHIFT595_SRCLK = GPIO_SHIFT595_SRCLK
|
|
SHIFT595_RCLK = GPIO_SHIFT595_RCLK
|
|
SHIFT595_OE = GPIO_SHIFT595_OE
|
|
SHIFT595_SER = GPIO_SHIFT595_SER
|
|
SOLAXX1_RTS = GPIO_SOLAXX1_RTS
|
|
OPTION_E = GPIO_OPTION_E
|
|
SDM230_TX = GPIO_SDM230_TX
|
|
SDM230_RX = GPIO_SDM230_RX
|
|
ADC_MQ = GPIO_ADC_MQ
|
|
CM11_TXD = GPIO_CM11_TXD
|
|
CM11_RXD = GPIO_CM11_RXD
|
|
BL6523_TX = GPIO_BL6523_TX
|
|
BL6523_RX = GPIO_BL6523_RX
|
|
ADE7880_IRQ = GPIO_ADE7880_IRQ
|
|
RESET = GPIO_RESET
|
|
|
|
SENSOR_END = GPIO_SENSOR_END
|