Contents
Include
ao_recv.h |
ao_send.h |
ao_sys.h |
ao_task.h |
ao_uart.h |
stdbool.h |
xc.h |
Configuration
AO_UART_2
#define AO_UART_2 (false)
Defines whether to use the module.
AO_UART_BAUD_2
#define AO_UART_BAUD_2 (9600)
Defines the baud rate, in bits per second.
AO_UART_DATA_BITS_PARITY_2
#define AO_UART_DATA_BITS_PARITY_2 (AO_UART_DATA_BITS_8_PARITY_NONE)
AO_UART_DATA_BITS_8_PARITY_NONE |
8-bit data, no parity. |
AO_UART_DATA_BITS_8_PARITY_EVEN |
8-bit data, even parity. |
AO_UART_DATA_BITS_8_PARITY_ODD |
8-bit data, odd parity. |
AO_UART_DATA_BITS_9_PARITY_NONE |
9-bit data, no parity. |
Defines the number of data bits and the parity.
AO_UART_ERROR_2
#define AO_UART_ERROR_2 (false)
Defines whether to notify the application of errors.
AO_UART_LOOPBACK_2
#define AO_UART_LOOPBACK_2 (false)
Defines whether to operate in loopback mode.
AO_UART_RX_2
#define AO_UART_RX_2 (false)
Defines whether to receive data.
AO_UART_STOP_BITS_2
#define AO_UART_STOP_BITS_2 (AO_UART_STOP_BITS_ONE)
AO_UART_STOP_BITS_ONE |
1 stop bit. |
AO_UART_STOP_BITS_TWO |
2 stop bits. |
Defines the number of stop bits.
AO_UART_TX_2
#define AO_UART_TX_2 (false)
Defines whether to transmit data.
Constants
AO_UART_BAUD_MAX_2
#define AO_UART_BAUD_MAX_2 \
( \
AO_UART_BAUD_MAX(AO_SYS_CLOCK_UART2) \
)
The maximum possible baud rate, in bits per second.
AO_UART_BAUD_MAX_HI_2
#define AO_UART_BAUD_MAX_HI_2 \
( \
AO_UART_BAUD_MAX_HI(AO_SYS_CLOCK_UART2) \
)
The maximum possible baud rate in high-speed mode, in bits per second.
AO_UART_BAUD_MAX_LO_2
#define AO_UART_BAUD_MAX_LO_2 \
( \
AO_UART_BAUD_MAX_LO(AO_SYS_CLOCK_UART2) \
)
The maximum possible baud rate in standard-speed mode, in bits per second.
AO_UART_BAUD_MIN_2
#define AO_UART_BAUD_MIN_2 \
( \
AO_UART_BAUD_MIN(AO_SYS_CLOCK_UART2) \
)
The minimum possible baud rate, in bits per second.
AO_UART_BAUD_MIN_HI_2
#define AO_UART_BAUD_MIN_HI_2 \
( \
AO_UART_BAUD_MIN_HI(AO_SYS_CLOCK_UART2) \
)
The minimum possible baud rate in high-speed mode, in bits per second.
AO_UART_BAUD_MIN_LO_2
#define AO_UART_BAUD_MIN_LO_2 \
( \
AO_UART_BAUD_MIN_LO(AO_SYS_CLOCK_UART2) \
)
The minimum possible baud rate in standard-speed mode, in bits per second.
Functions
ao_uart_error_2
void ao_uart_error_2(ao_uart_error_t e);
Notifies the application of one or more detected errors.
ao_uart_reg_2
#define ao_uart_reg_2() \
( \
(ao_uart_reg_t *) \
( \
_UART2_BASE_ADDRESS \
) \
)
Gets the control registers.
ao_uart_start_2
ao_uart_stop_2
void ao_uart_start_2();
void ao_uart_stop_2();
Starts or stops the driver, respectively.
Variables
ao_uart_in_2
extern ao_send_t ao_uart_in_2;
The object used to send inbound data to the application.
ao_uart_out_2
extern ao_recv_t ao_uart_out_2;
The object used to receive outbound data from the application.
ao_uart_task_2
extern ao_task_t ao_uart_task_2;
The task sending outbound data.