Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
static_i2c.h File Reference

Go to the source code of this file.

Macros

#define I2CSTATICODE
 
#define INTI2CFNCOLLAPSE(PFX, name)   PFX##name
 
#define I2CFNCOLLAPSE(PFX, name)   INTI2CFNCOLLAPSE(PFX, name)
 
#define I2CNEEDGETBYTE   1
 
#define DSCL_IHIGH   DSCL_INPUT
 
#define DSDA_IHIGH   DSDA_INPUT
 

Functions

I2CSTATICODE void I2CFNCOLLAPSE (I2CPREFIX, ConfigI2C)()
 
I2CSTATICODE void I2CFNCOLLAPSE (I2CPREFIX, SendStart)()
 
I2CSTATICODE void I2CFNCOLLAPSE (I2CPREFIX, SendStop)()
 
I2CSTATICODE unsigned char I2CFNCOLLAPSE (I2CPREFIX, SendByte)(unsigned char data)
 

Macro Definition Documentation

◆ I2CSTATICODE

#define I2CSTATICODE

◆ INTI2CFNCOLLAPSE

#define INTI2CFNCOLLAPSE ( PFX,
name )   PFX##name

◆ I2CFNCOLLAPSE

#define I2CFNCOLLAPSE ( PFX,
name )   INTI2CFNCOLLAPSE(PFX, name)

◆ I2CNEEDGETBYTE

#define I2CNEEDGETBYTE   1

◆ DSCL_IHIGH

#define DSCL_IHIGH   DSCL_INPUT

◆ DSDA_IHIGH

#define DSDA_IHIGH   DSDA_INPUT

Function Documentation

◆ I2CFNCOLLAPSE() [1/4]

I2CSTATICODE void I2CFNCOLLAPSE ( I2CPREFIX ,
ConfigI2C  )

◆ I2CFNCOLLAPSE() [2/4]

I2CSTATICODE void I2CFNCOLLAPSE ( I2CPREFIX ,
SendStart  )

◆ I2CFNCOLLAPSE() [3/4]

I2CSTATICODE void I2CFNCOLLAPSE ( I2CPREFIX ,
SendStop  )

◆ I2CFNCOLLAPSE() [4/4]

I2CSTATICODE unsigned char I2CFNCOLLAPSE ( I2CPREFIX ,
SendByte  )