LTlib LaurTec Library
4.0.0 Beta
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
|
#include <xc.h>
#include "LTlib.h"
#include "module_IO.h"
#include "module_IO.c"
#include "module_I2C.h"
#include "module_I2C.c"
Go to the source code of this file.
Macros | |
#define | SLAVE_ADDRESS 0xA6 |
#define | READ 0x01 |
#define | WRITE 0x00 |
#define | BYTE_TO_SEND 0x05 |
#define | I2C_MODULE_1 |
#define | I2C_Module_open I2C1_open |
#define | I2C_Module_baud_rate I2C1_baud_rate |
#define | I2C_Module_wait_bus_IDLE I2C1_wait_bus_IDLE |
#define | I2C_Module_start_bit I2C1_start_bit |
#define | I2C_Module_read_byte I2C1_read_byte |
#define | I2C_Module_reset_write_collision_flag I2C1_reset_write_collision_flag |
#define | I2C_Module_write_byte I2C1_write_byte |
#define | I2C_Module_stop_bit I2C1_stop_bit |
#define | I2C_Module_set_slave_address I2C1_set_slave_address |
#define | I2C_Module_check_data_ready I2C1_check_data_ready |
#define | I2C_Module_check_read_write_operation I2C1_check_read_write_operation |
#define | I2C_Module_check_stop_bit I2C1_check_stop_bit |
#define | I2C_Module_check_start_bit I2C1_check_start_bit |
Functions | |
void | board_initialization (void) |
int | main (void) |
#define I2C_Module_baud_rate I2C1_baud_rate |
#define I2C_Module_check_data_ready I2C1_check_data_ready |
#define I2C_Module_check_read_write_operation I2C1_check_read_write_operation |
#define I2C_Module_check_start_bit I2C1_check_start_bit |
#define I2C_Module_check_stop_bit I2C1_check_stop_bit |
#define I2C_Module_read_byte I2C1_read_byte |
#define I2C_Module_reset_write_collision_flag I2C1_reset_write_collision_flag |
#define I2C_Module_set_slave_address I2C1_set_slave_address |
#define I2C_Module_start_bit I2C1_start_bit |
#define I2C_Module_stop_bit I2C1_stop_bit |
#define I2C_Module_wait_bus_IDLE I2C1_wait_bus_IDLE |
#define I2C_Module_write_byte I2C1_write_byte |
void board_initialization | ( | void | ) |
int main | ( | void | ) |
Definition at line 66 of file main.c.
References I2C_Module_check_data_ready, I2C_Module_check_read_write_operation, I2C_Module_check_start_bit, I2C_Module_open, I2C_Module_read_byte, I2C_Module_set_slave_address, I2C_SLAVE_7_BIT_ADDRESS, IO_ALL_PORT_OUTPUT, IO_PORTD, IO_set_all_ports_as_inputs(), IO_set_port_direction(), IO_write_port(), SLAVE_ADDRESS, and WRITE.