snickerdoodle Platform Controller
firmware for STM32F0 platform controller
I2C Types

Data Structures

struct  sd_i2c_dev
 I2C device structure. More...
 

Enumerations

enum  sd_i2c_err {
  SD_I2C_SUCCESS = 0x4A0D, SD_I2C_NULL_ERROR, SD_I2C_LOCKED, SD_I2C_TIMEOUT,
  SD_I2C_ERROR
}
 I2C error enumeration. More...
 
enum  sd_i2c_state { SD_I2C_INITIALIZED = 0x0E60, SD_I2C_READY, SD_I2C_BUSY }
 I2C state enumeration. More...
 

Detailed Description

Enumeration Type Documentation

◆ sd_i2c_err

enum sd_i2c_err

#include <Inc/sd_i2c.h>

I2C error enumeration.

Enumerator
SD_I2C_SUCCESS 

Successful execution

SD_I2C_NULL_ERROR 

NULL pointer error

SD_I2C_LOCKED 

The buffer is being used

SD_I2C_TIMEOUT 

The operation timed out

SD_I2C_ERROR 

General execution error

105  {
106  SD_I2C_SUCCESS = 0x4A0D,
108  SD_I2C_LOCKED,
Definition: sd_i2c.h:104
Definition: sd_i2c.h:103
Definition: sd_i2c.h:105

◆ sd_i2c_state

#include <Inc/sd_i2c.h>

I2C state enumeration.

Enumerator
SD_I2C_INITIALIZED 

I2C initialized

SD_I2C_READY 

I2C ready

SD_I2C_BUSY 

I2C in use

117  {
118  SD_I2C_INITIALIZED = 0x0E60,
Definition: sd_i2c.h:115