LTlib LaurTec Library
4.0.0 Beta
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
|
#include "module_IO.h"
Go to the source code of this file.
Functions | |
void | IO_set_all_ports_as_inputs (void) |
void | IO_set_port_direction (unsigned char mcu_port, port_size port_direction) |
void | IO_write_port (unsigned char mcu_port, port_size port_data) |
port_size | IO_read_port (unsigned char mcu_port) |
port_size | IO_read_port_bit (unsigned char mcu_port, port_size bit_mask) |
void | IO_enable_pull_up_resistors (unsigned char mcu_port, port_size resistors_to_enable) |
void IO_enable_pull_up_resistors | ( | unsigned char | mcu_port, |
port_size | resistors_to_enable | ||
) |
Definition at line 267 of file module_IO.c.
References IO_PORTB, PULL_UP_ENABLE_BIT, and PULL_UP_ENABLE_REGISTER_B.
port_size IO_read_port | ( | unsigned char | mcu_port | ) |
This function reads the data from the port.
mcu_port | Port from which you want to read the data. |
Definition at line 196 of file module_IO.c.
References IO_PORTA, IO_PORTB, IO_PORTC, IO_PORTD, and IO_PORTE.
This function reads bit from the selected port.
mcu_port | Port from which you want to read the data. |
bit_mask | Selected bit to be read out of the port. |
Definition at line 228 of file module_IO.c.
References IO_PORTA, IO_PORTB, IO_PORTC, IO_PORTD, and IO_PORTE.
void IO_set_all_ports_as_inputs | ( | void | ) |
This function initialize all the PORTs as inputs
void |
Definition at line 47 of file module_IO.c.
void IO_set_port_direction | ( | unsigned char | mcu_port, |
port_size | port_direction | ||
) |
This function set the MCU port direction.
mcu_port | port for which you want to enable the pull-up resistors |
port_direction | Each bit set the proper bit direction |
Definition at line 110 of file module_IO.c.
References IO_PORTA, IO_PORTB, IO_PORTC, IO_PORTD, and IO_PORTE.
void IO_write_port | ( | unsigned char | mcu_port, |
port_size | port_data | ||
) |
This function writes the data to the port.
mcu_port | Port to which you want to write the data. |
port_data | Data to be sent out |
Definition at line 141 of file module_IO.c.
References IO_PORTA, IO_PORTB, IO_PORTC, IO_PORTD, and IO_PORTE.