#include "e_I2C_master_module.h"
#include "../motor_led/e_epuck_ports.h"
Functions | |
| void | e_i2cp_init (void) |
| Initialize the microcontroller for I2C uses. | |
| char | e_i2cp_write (char device_add, char reg, char value) |
| Write a specific register on a device. | |
| char | e_i2cp_read (char device_add, char reg) |
| Read a specific register on a device. | |
| char | e_i2cp_read_string (char device_add, unsigned char read_buffer[], char start_address, char string_length) |
| char | e_i2cp_write_string (char device_add, unsigned char write_buffer[], char start_address, char string_length) |
| void | e_i2cp_enable (void) |
| Enable special I2C interrupt. | |
| void | e_i2cp_disable (void) |
| Disable special I2C interrupt. | |
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_read_string | ( | char | device_add, | |
| unsigned char | read_buffer[], | |||
| char | start_address, | |||
| char | string_length | |||
| ) |
| 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 |
| char e_i2cp_write_string | ( | char | device_add, | |
| unsigned char | write_buffer[], | |||
| char | start_address, | |||
| char | string_length | |||
| ) |
1.5.4