#include "asf.h"
#include "serial_bridge.h"
#include "conf_serialbridge.h"
#include "serial_fifo.h"
#include "ble_utils.h"
#include "conf_serialdrv.h"
Functions | |
void | platform_dtm_interface_receive (uint8_t rx_data) |
void | platform_start_rx (void) |
uint8_t | serial_bridge_init (void) |
This module performs serial input/output functionalities via UART. More... | |
void | serial_bridge_task (void) |
Bridges the UARTS. More... | |
static void | serial_drv_edbg_read_cb (struct usart_module *const module) |
static void | serial_drv_edbg_write_cb (struct usart_module *const module) |
static uint8_t | serial_eread_byte (uint16_t *data) |
Variables | |
static uint8_t | ble_eusart_rx_buf [BLE_MAX_RX_PAYLOAD_SIZE] |
static ser_fifo_desc_t | ble_eusart_rx_fifo |
static uint8_t | ble_eusart_tx_buf [BLE_MAX_TX_PAYLOAD_SIZE] |
static ser_fifo_desc_t | ble_eusart_tx_fifo |
uint8_t | ble_usart_rx_buf [BLE_MAX_RX_PAYLOAD_SIZE] |
ser_fifo_desc_t | ble_usart_rx_fifo |
static uint8_t | ble_usart_tx_buf [BLE_MAX_TX_PAYLOAD_SIZE] |
ser_fifo_desc_t | ble_usart_tx_fifo |
static struct usart_module | eusart_instance |
static uint16_t | g_etxdata |
static uint16_t | g_txdata |
static uint16_t | rx_edata |
struct usart_module | usart_instance |
[module_inst] More... | |
void platform_dtm_interface_receive | ( | uint8_t | rx_data | ) |
Referenced by ble_init().
void platform_start_rx | ( | void | ) |
Referenced by main(), platform_dtm_interface_receive(), and platform_recv_async().
uint8_t serial_bridge_init | ( | void | ) |
This module performs serial input/output functionalities via UART.
Initializes the Serial IO Module
Referenced by main().
void serial_bridge_task | ( | void | ) |
Bridges the UARTS.
Takes | the data from one USART Rx to other USART Tx and vice versa |
Referenced by main().
|
static |
References rx_edata, ser_fifo_push_uint8(), serial_eread_byte(), and STATUS_BUSY.
Referenced by serial_bridge_init().
|
static |
References eusart_instance, g_etxdata, SER_FIFO_OK, ser_fifo_pull_uint8(), STATUS_OK, and usart_write_job().
Referenced by serial_bridge_init().
|
static |
References eusart_instance, and usart_read_job().
Referenced by serial_bridge_init(), and serial_drv_edbg_read_cb().
|
static |
Referenced by serial_bridge_init().
|
static |
|
static |
Referenced by serial_bridge_init().
|
static |
uint8_t ble_usart_rx_buf[BLE_MAX_RX_PAYLOAD_SIZE] |
Referenced by serial_bridge_init().
ser_fifo_desc_t ble_usart_rx_fifo |
|
static |
Referenced by serial_bridge_init().
ser_fifo_desc_t ble_usart_tx_fifo |
|
static |
Referenced by serial_bridge_init(), serial_bridge_task(), serial_drv_edbg_write_cb(), and serial_eread_byte().
|
static |
Referenced by serial_bridge_task(), and serial_drv_edbg_write_cb().
|
static |
Referenced by serial_bridge_task().
|
static |
Referenced by serial_bridge_init(), and serial_drv_edbg_read_cb().
struct usart_module usart_instance |
[module_inst]
[module_inst]
Global Variable declaration
Referenced by configure_serial_drv(), configure_usart(), configure_usart_callbacks(), main(), platform_serial_drv_tx_status(), platform_set_ble_rts_high(), platform_set_ble_rts_low(), serial_bridge_task(), serial_drv_send(), serial_read_byte(), serial_read_data(), setup_transfer_descriptor_rx(), setup_transfer_descriptor_tx(), setup_usart_channel(), usart_configure_flowcontrol(), and usart_read_callback().