ESOS32
ESOSOn32-bitProcessors
Macros | Functions | Variables
esos_hwxxx_i2c.h File Reference

This file contains template routines which define, configure and allow use of the I2C service on some specific hardware. More...

#include "esos.h"
#include "esos_i2c.h"
#include "esos_hwxxx.h"
Include dependency graph for esos_hwxxx_i2c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLEAR_REGISTER_BITS(reg, mask)   reg &= (~(mask))
 
#define SET_REGISTER_BITS(reg, mask)   reg |= (mask)
 
#define MAKE_I2C_WR_ADDR(bits)   bits &= 0xFFE
 
#define MAKE_I2C_RD_ADDR(bits)   bits &= 0x001
 

Functions

void __esos_i2c_hw_config (uint32_t u32_i2cbps)
 
 ESOS_CHILD_TASK (__esos_i2c_hw_writeN, uint8_t u8_addr, uint8_t *pu8_d, uint_t u8_cnt)
 
 ESOS_CHILD_TASK (__esos_i2c_hw_readN, uint8_t u8_addr, uint8_t *pu8_d, uint8_t u8_cnt)
 
 ESOS_CHILD_TASK (__esos_i2c_hw_writeNReadM, uint8_t u8_addr, uint8_t *pu8_wd, uint8_t u8_wcnt, uint8_t *pu8_rd, uint8_t u8_rcnt)
 

Variables

struct stTask __stChildTaskI2C __stGrandChildTaskI2C
 
uint8_t __esos_i2c_dataBytes [2]
 

Detailed Description

This file contains template routines which define, configure and allow use of the I2C service on some specific hardware.

Definition in file esos_hwxxx_i2c.h.