#include "e_I2C_master_module.h"
Functions | |
| void | idle_i2c (void) |
| Wait until I2C Bus is Inactive. | |
| char | e_i2c_init (void) |
| Initialize the microcontroller for I2C uses. | |
| char | e_i2c_reset (void) |
| Reset the microcontroller for I2C uses. | |
| char | e_i2c_enable (void) |
| Enable special I2C interrupt. | |
| char | e_i2c_disable (void) |
| Disable special I2C interrupt. | |
| char | e_i2c_start (void) |
| Make the start bit. | |
| char | e_i2c_restart (void) |
| Make the restart bit. | |
| char | e_i2c_stop (void) |
| Make the stop bit. | |
| char | e_i2c_ack (void) |
| Make the acknowledgement bit. | |
| char | e_i2c_nack (void) |
| Make the non-acknowledgement bit. | |
| char | e_i2c_read (char *buf) |
| Read the I2C input register. | |
| char | e_i2c_write (char byte) |
| Write on the I2C output register. | |
| void | __attribute__ ((__interrupt__, auto_psv)) |
Variables | |
| char | e_i2c_mode |
| int | e_interrupts [3] |
This module manage the I2C basics functions (low level I2C functions).
They are made to perform the basics tasks like:
| void __attribute__ | ( | (__interrupt__, auto_psv) | ) |
| char e_i2c_ack | ( | void | ) |
Make the acknowledgement bit.
| char e_i2c_disable | ( | void | ) |
Disable special I2C interrupt.
| char e_i2c_enable | ( | void | ) |
Enable special I2C interrupt.
| char e_i2c_init | ( | void | ) |
Initialize the microcontroller for I2C uses.
| char e_i2c_nack | ( | void | ) |
Make the non-acknowledgement bit.
| char e_i2c_read | ( | char * | buf | ) |
Read the I2C input register.
| buf | A pointer to store the datas received |
| char e_i2c_reset | ( | void | ) |
Reset the microcontroller for I2C uses.
| char e_i2c_restart | ( | void | ) |
Make the restart bit.
| char e_i2c_start | ( | void | ) |
Make the start bit.
| char e_i2c_stop | ( | void | ) |
Make the stop bit.
| char e_i2c_write | ( | char | byte | ) |
Write on the I2C output register.
| byte | What you want to send on I2C |
| void idle_i2c | ( | void | ) |
Wait until I2C Bus is Inactive.
| char e_i2c_mode |
| int e_interrupts[3] |
1.5.4