Contents
Include
ao_recv.h |
ao_send.h |
ao_sys.h |
ao_task.h |
ao_uart.h |
stdbool.h |
xc.h |
Configuration
AO_UART_6
#define AO_UART_6 (false)
Defines whether to use the module.
AO_UART_BAUD_6
#define AO_UART_BAUD_6 (9600)
Defines the baud rate, in bits per second.
AO_UART_DATA_BITS_PARITY_6
#define AO_UART_DATA_BITS_PARITY_6 (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_6
#define AO_UART_ERROR_6 (false)
Defines whether to notify the application of errors.
AO_UART_LOOPBACK_6
#define AO_UART_LOOPBACK_6 (false)
Defines whether to operate in loopback mode.
AO_UART_RX_6
#define AO_UART_RX_6 (false)
Defines whether to receive data.
AO_UART_STOP_BITS_6
#define AO_UART_STOP_BITS_6 (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_6
#define AO_UART_TX_6 (false)
Defines whether to transmit data.
Constants
AO_UART_BAUD_MAX_6
#define AO_UART_BAUD_MAX_6 \
( \
AO_UART_BAUD_MAX(AO_SYS_CLOCK_UART6) \
)
The maximum possible baud rate, in bits per second.
AO_UART_BAUD_MAX_HI_6
#define AO_UART_BAUD_MAX_HI_6 \
( \
AO_UART_BAUD_MAX_HI(AO_SYS_CLOCK_UART6) \
)
The maximum possible baud rate in high-speed mode, in bits per second.
AO_UART_BAUD_MAX_LO_6
#define AO_UART_BAUD_MAX_LO_6 \
( \
AO_UART_BAUD_MAX_LO(AO_SYS_CLOCK_UART6) \
)
The maximum possible baud rate in standard-speed mode, in bits per second.
AO_UART_BAUD_MIN_6
#define AO_UART_BAUD_MIN_6 \
( \
AO_UART_BAUD_MIN(AO_SYS_CLOCK_UART6) \
)
The minimum possible baud rate, in bits per second.
AO_UART_BAUD_MIN_HI_6
#define AO_UART_BAUD_MIN_HI_6 \
( \
AO_UART_BAUD_MIN_HI(AO_SYS_CLOCK_UART6) \
)
The minimum possible baud rate in high-speed mode, in bits per second.
AO_UART_BAUD_MIN_LO_6
#define AO_UART_BAUD_MIN_LO_6 \
( \
AO_UART_BAUD_MIN_LO(AO_SYS_CLOCK_UART6) \
)
The minimum possible baud rate in standard-speed mode, in bits per second.
Functions
ao_uart_error_6
void ao_uart_error_6(ao_uart_error_t e);
Notifies the application of one or more detected errors.
ao_uart_reg_6
#define ao_uart_reg_6() \
( \
(ao_uart_reg_t *) \
( \
_UART6_BASE_ADDRESS \
) \
)
Gets the control registers.
ao_uart_start_6
ao_uart_stop_6
void ao_uart_start_6();
void ao_uart_stop_6();
Starts or stops the driver, respectively.
Variables
ao_uart_in_6
extern ao_send_t ao_uart_in_6;
The object used to send inbound data to the application.
ao_uart_out_6
extern ao_recv_t ao_uart_out_6;
The object used to receive outbound data from the application.
ao_uart_task_6
extern ao_task_t ao_uart_task_6;
The task sending outbound data.