Macros for controlling SCL and SDA lines in software TWI implementation.
More...
Macros for controlling SCL and SDA lines in software TWI implementation.
This group contains macros to set SCL and SDA lines to logical HIGH or LOW. The implementation differs based on whether TWI_SOFT_PULLUP_ENABLE is defined:
- With pull-up enabled: PORT and DDR registers are adjusted.
- Without pull-up: only DDR registers are modified.
This group contains macros to set SCL and SDA lines to logical HIGH or LOW.
◆ SCL_HIGH [1/2]
Value:
#define TWI_SOFT_DDR
Data Direction Register for the TWI port.
Definition twi_soft.h:79
#define TWI_SOFT_PORT
Port register for the TWI lines.
Definition twi_soft.h:90
#define TWI_SOFT_SCL
Pin number for TWI Clock line (SCL).
Definition twi_soft.h:112
◆ SCL_HIGH [2/2]
◆ SCL_LOW [1/2]
◆ SCL_LOW [2/2]
◆ SDA_HIGH [1/2]
Value:
#define TWI_SOFT_SDA
Pin number for TWI Data line (SDA).
Definition twi_soft.h:123
◆ SDA_HIGH [2/2]
◆ SDA_LOW [1/2]
◆ SDA_LOW [2/2]