oled 1.0
OLED Graphics Control Library
Loading...
Searching...
No Matches
Software TWI (I2C) Control Macros

Macros for controlling SCL and SDA lines in software TWI implementation. More...

Macros

#define SCL_LOW()
#define SDA_LOW()
#define SCL_HIGH()
#define SDA_HIGH()
#define SCL_LOW()
#define SDA_LOW()
#define SCL_HIGH()
#define SDA_HIGH()

Detailed Description

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.

Macro Definition Documentation

◆ SCL_HIGH [1/2]

#define SCL_HIGH ( )
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]

#define SCL_HIGH ( )
Value:

◆ SCL_LOW [1/2]

#define SCL_LOW ( )
Value:

◆ SCL_LOW [2/2]

#define SCL_LOW ( )
Value:

◆ SDA_HIGH [1/2]

#define SDA_HIGH ( )
Value:
#define TWI_SOFT_SDA
Pin number for TWI Data line (SDA).
Definition twi_soft.h:123

◆ SDA_HIGH [2/2]

#define SDA_HIGH ( )
Value:

◆ SDA_LOW [1/2]

#define SDA_LOW ( )
Value:

◆ SDA_LOW [2/2]

#define SDA_LOW ( )
Value: