ESOS32
ESOSOn32-bitProcessors
Macros | Functions
esos_i2c.h File Reference
#include <esos.h>
Include dependency graph for esos_i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ESOS_I2C_ACK   0
 
#define ESOS_I2C_NAK   1
 
#define I2C_WADDR(x)   (x & 0xFE)
 
#define I2C_RADDR(x)   (x | 0x01)
 
#define ESOS_TASK_WAIT_ON_AVAILABLE_I2C()
 
#define ESOS_SIGNAL_AVAILABLE_I2C()
 
#define ESOS_IS_I2C_AVAILABLE()
 
#define ESOS_TASK_WAIT_ON_WRITE1I2C(u8_addr, u8_d1)
 
#define ESOS_TASK_WAIT_ON_WRITE2I2C(u8_addr, u8_d1, u8_d2)
 
#define ESOS_TASK_WAIT_ON_WRITENI2C(u8_addr, pu8_d, u8_cnt)
 
#define ESOS_TASK_WAIT_ON_READ1I2C(u8_addr, u8_d1)
 
#define ESOS_TASK_WAIT_ON_READ2I2C(u8_addr, u8_d1, u8_d2)
 
#define ESOS_TASK_WAIT_ON_READNI2C(u8_addr, pu8_d, u8_cnt)
 

Functions

void __esos_i2c_config (uint32_t u32_i2cbps)
 
void __esos_i2c_hw_config (uint32_t u32_i2cbps)
 
 ESOS_CHILD_TASK (__esos_hw_getI2C, uint8_t *pu8_x, uint8_t u8_ack2Send)
 
 ESOS_CHILD_TASK (__esos_i2c_hw_writeN, uint8_t u8_addr, uint8_t *pu8_d, uint8_t u8_cnt)
 
 ESOS_CHILD_TASK (__esos_i2c_hw_readN, uint8_t u8_addr, uint8_t *pu8_d, uint8_t u8_cnt)
 

Detailed Description

This file contains macros, prototypes, and definitions for the I2C services for ESOS tasks.

Definition in file esos_i2c.h.