#include "p30f6014A.h"
Defines | |
| #define | START 1 |
| #define | WRITE 2 |
| #define | ACKNOWLEDGE 3 |
| #define | READ 4 |
| #define | STOP 5 |
| #define | RESTART 6 |
| #define | ERROR 10 |
| #define | OPERATION_OK 0 |
Functions | |
| char | e_i2c_init (void) |
| Initialize the microcontroller for I2C uses. | |
| char | e_i2c_start (void) |
| Make the start bit. | |
| char | e_i2c_restart (void) |
| Make the restart 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_stop (void) |
| Make the stop bit. | |
| char | e_i2c_write (char byte) |
| Write on the I2C output register. | |
| char | e_i2c_enable (void) |
| Enable special I2C interrupt. | |
| char | e_i2c_disable (void) |
| Disable special I2C interrupt. | |
| char | e_i2c_reset (void) |
| Reset the microcontroller for I2C uses. | |
| #define ACKNOWLEDGE 3 |
| #define ERROR 10 |
| #define OPERATION_OK 0 |
| #define READ 4 |
| #define RESTART 6 |
| #define START 1 |
| #define STOP 5 |
| #define WRITE 2 |
| 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 |
1.5.4