Sensorian
1.0
C API Reference Guide Library
|
I2C driver. More...
Go to the source code of this file.
Functions | |
void | I2C_Initialize (unsigned char address) |
Initializes the I2C peripheral. More... | |
void | I2C_WriteByte (char bdata) |
Writes a byte value to the I2C bus. This assumes the register pointer is preset. More... | |
void | I2C_WriteByteRegister (unsigned char reg, unsigned char data) |
Writes a byte value to a register address. More... | |
void | I2C_WriteWordRegister (unsigned char reg, unsigned char *data) |
Writes a word value (16 bit) to a register address. More... | |
void | I2C_WriteByteArray (char reg, char *data, unsigned int length) |
Writes a buffer array to the registers. More... | |
unsigned char | I2C_ReadByteRegister (char reg) |
Reads a byte from a register. More... | |
void | I2C_ReadByteArray (char reg, char *buffer, unsigned int length) |
Initializes the I2C peripheral. More... | |
unsigned int | I2C_ReadWordRegisterRS (char reg) |
Readm result from a word length register. More... | |
unsigned int | I2C_ReadWordPresetPointer (void) |
Read the value of a register that has already been select via the address pointer. More... | |
void | I2C_Close (void) |
Closes the I2C peripheral. More... | |
void I2C_Close | ( | void | ) |
void I2C_Initialize | ( | unsigned char | address | ) |
void I2C_ReadByteArray | ( | char | reg, |
char * | buffer, | ||
unsigned int | length | ||
) |
unsigned char I2C_ReadByteRegister | ( | char | reg | ) |
unsigned int I2C_ReadWordPresetPointer | ( | void | ) |
unsigned int I2C_ReadWordRegisterRS | ( | char | reg | ) |
void I2C_WriteByte | ( | char | bdata | ) |
void I2C_WriteByteArray | ( | char | reg, |
char * | data, | ||
unsigned int | length | ||
) |
void I2C_WriteByteRegister | ( | unsigned char | reg, |
unsigned char | data | ||
) |