#include "e_I2C_protocol.h"
Functions | |
| void | e_i2cp_init (void) |
| Initialize the microcontroller for I2C uses. | |
| void | e_i2cp_enable (void) |
| Enable special I2C interrupt. | |
| void | e_i2cp_disable (void) |
| Disable special I2C interrupt. | |
| char | e_i2cp_read (char device_add, char reg) |
| Read a specific register on a device. | |
| char | e_i2cp_write (char device_add, char reg, char value) |
| Write a specific register on a device. | |
This module manage the I2C protocole. The function's module are made to directly send or receive data from or to a specified slave.
| void e_i2cp_disable | ( | void | ) |
Disable special I2C interrupt.
| void e_i2cp_enable | ( | void | ) |
Enable special I2C interrupt.
| void e_i2cp_init | ( | void | ) |
Initialize the microcontroller for I2C uses.
| char e_i2cp_read | ( | char | device_add, | |
| char | reg | |||
| ) |
Read a specific register on a device.
| device_add | The address of the device you want information | |
| reg | The register address you want read on the device |
| char e_i2cp_write | ( | char | device_add, | |
| char | reg, | |||
| char | value | |||
| ) |
Write a specific register on a device.
| device_add | The address of the device you want information | |
| reg | The register address you want read on the device | |
| value | The data you want to write |
1.5.4