Interface Driver for Maxim DS2482 1Wire-to-I2C bridge IC. Includes access functions for DS1820 temperature sensors. Can easily be ported to other hardware by using hardware abstraction layer.

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers i2c_api.h Source File

i2c_api.h

00001 /* Hardware API (HAL) For I2C Peripheral Access */
00002 #include "mbed.h"                   // peripheral access library
00003 extern I2C *mbed_i2c;                      // global i2c peripheral object
00004 
00005 int8_t _i8I2CWrite          (uint8_t u8Cmd, uint8_t *u8Data, uint8_t u8Size);
00006 int8_t _i8I2CWriteByte      (uint8_t u8Cmd);
00007 int8_t _i8I2CRead           (uint8_t u8Cmd, uint8_t *u8Data, uint8_t u8Size, uint8_t u8Ack);
00008 int8_t _i8I2CReadByte       (uint8_t u8Ack);
00009 void   _vI2CStart           (void);
00010 void   _vI2CStop            (void);