KETCube
Macros | Enumerations

Public defines. More...

Macros

#define KETCUBE_I2C_NAME   "i2c_drv"
 I2C driver name. More...
 
#define KETCUBE_I2C_ADDRESS   (uint8_t)0x33
 KETCube I2C address (KETCube is normally master and acts on a single-master I2C bus, thus this address has almost no meaning) More...
 
#define KETCUBE_I2C_HANDLE   I2C1
 
#define KETCUBE_I2C_TIMEOUT   0x5000
 The value of the maximal timeout for BUS waiting loops. More...
 

Enumerations

enum  ketCube_I2C_SPEED_t { KETCUBE_I2C_SPEED_100KHZ = 0x10A13E56, KETCUBE_I2C_SPEED_400KHZ = 0x00B1112E }
 I2C Speed selection. More...
 

Detailed Description

Public defines.

Macro Definition Documentation

◆ KETCUBE_I2C_ADDRESS

#define KETCUBE_I2C_ADDRESS   (uint8_t)0x33

KETCube I2C address (KETCube is normally master and acts on a single-master I2C bus, thus this address has almost no meaning)

◆ KETCUBE_I2C_HANDLE

#define KETCUBE_I2C_HANDLE   I2C1

◆ KETCUBE_I2C_NAME

#define KETCUBE_I2C_NAME   "i2c_drv"

I2C driver name.

◆ KETCUBE_I2C_TIMEOUT

#define KETCUBE_I2C_TIMEOUT   0x5000

The value of the maximal timeout for BUS waiting loops.

Enumeration Type Documentation

◆ ketCube_I2C_SPEED_t

I2C Speed selection.

Enumerator
KETCUBE_I2C_SPEED_100KHZ 

Analog Filter ON, Rise Time 400ns, Fall Time 100ns

KETCUBE_I2C_SPEED_400KHZ 

Analog Filter ON, Rise Time 250ns, Fall Time 100ns