Handles Serial driver functionalities.
Copyright (c) 2017-2018 Microchip Technology Inc. and its subsidiaries.
#define | platform_start_rx() |
This module performs serial input/output functionalities via UART. More... | |
uint8_t | configure_serial_drv (uint32_t) |
Initializes the Serial IO Module. More... | |
uint16_t | serial_drv_send (uint8_t *data, uint16_t len) |
Transmits data via UART. More... | |
uint8_t | serial_read_data (uint8_t *data, uint16_t max_len) |
Receives data from UART. More... | |
uint8_t | serial_read_byte (uint16_t *data) |
void | configure_usart_after_patch (uint32_t) |
uint32_t | platform_serial_drv_tx_status (void) |
void | platform_leave_critical_section (void) |
void | platform_enter_critical_section (void) |
void | platform_set_ble_rts_high (void) |
void | platform_set_ble_rts_low (void) |
void | platform_set_hostsleep (void) |
void | platform_restore_from_sleep (void) |
void | platform_configure_sleep_manager (void) |
uint16_t | serial_drive_rx_data_count (void) |
#define platform_start_rx | ( | ) |
This module performs serial input/output functionalities via UART.
Referenced by platform_recv_async().
uint8_t configure_serial_drv | ( | uint32_t | ) |
Initializes the Serial IO Module.
References configure_primary_uart(), and STATUS_OK.
Referenced by platform_configure_primary_uart(), and platform_init().
void configure_usart_after_patch | ( | uint32_t | ) |
References configure_primary_uart().
Referenced by platform_configure_hw_fc_uart().
void platform_configure_sleep_manager | ( | void | ) |
References current_sleep_mode, sleepmgr_init(), and sleepmgr_lock_mode().
Referenced by platform_init().
void platform_enter_critical_section | ( | void | ) |
References Disable_global_interrupt.
Referenced by platform_start_timer(), and platform_stop_timer().
void platform_leave_critical_section | ( | void | ) |
References Enable_global_interrupt.
Referenced by platform_start_timer(), and platform_stop_timer().
void platform_restore_from_sleep | ( | void | ) |
References current_sleep_mode, SLEEPMGR_ACTIVE, sleepmgr_lock_mode(), and sleepmgr_unlock_mode().
Referenced by platform_enter_sleep().
uint32_t platform_serial_drv_tx_status | ( | void | ) |
References ble_usart_tx_cmpl.
void platform_set_ble_rts_high | ( | void | ) |
References BLE_UART, and usart_drive_RTS_pin_low().
Referenced by platform_enter_sleep().
void platform_set_ble_rts_low | ( | void | ) |
References BLE_UART, and usart_drive_RTS_pin_high().
Referenced by platform_enter_sleep().
void platform_set_hostsleep | ( | void | ) |
References current_sleep_mode, sleepmgr_enter_sleep(), sleepmgr_lock_mode(), SLEEPMGR_SLEEP_WFI, and sleepmgr_unlock_mode().
Referenced by platform_enter_sleep().
uint16_t serial_drive_rx_data_count | ( | void | ) |
References ble_usart_pdc, dma_buf_index, pdc_read_rx_counter(), and pdc_packet::ul_size.
Referenced by platform_enter_sleep(), and platform_gpio_set().
uint16_t serial_drv_send | ( | uint8_t * | data, |
uint16_t | len | ||
) |
Transmits data via UART.
data | Pointer to the buffer where the data to be transmitted is present |
length | Number of bytes to be transmitted |
References ble_pdc_serial_drv_send(), pdc_uart_enabled, and STATUS_OK.
Referenced by platform_send_sync().
uint8_t serial_read_byte | ( | uint16_t * | data | ) |
uint8_t serial_read_data | ( | uint8_t * | data, |
uint16_t | max_len | ||
) |
Receives data from UART.
data | pointer to the buffer where the received data is to be stored |
max_length | maximum length of data to be received |