VSF Documented
|
#include "../driver.h"
#include "hal/vsf_hal.h"
#include "air105.h"
#include "hal/driver/common/usart/usart_template.inc"
Data Structures | |
struct | vsf_hw_usart_const_t |
include the infrastructure More... | |
struct | vsf_hw_usart_t |
Macros | |
#define | VSF_HW_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS |
#define | VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_USART_CFG_IMP_PREFIX __vsf_hw |
#define | VSF_USART_CFG_IMP_UPCASE_PREFIX __VSF_HW |
#define | VSF_USART_CFG_IMP_COUNT_MASK_PREFIX VSF_HW |
#define | VSF_USART_CFG_IMP_LV0(__IDX, __HAL_OP) |
#define | VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_USART_CFG_REIMPLEMENT_API_REQUEST ENABLED |
#define | VSF_USART_CFG_IMP_PREFIX vsf_hw |
#define | VSF_USART_CFG_IMP_UPCASE_PREFIX vsf_hw |
#define | VSF_USART_CFG_IMP_REMAP_PREFIX vsf_fifo2req |
#define | VSF_USART_CFG_IMP_LV0(__COUNT, __HAL_OP) |
Typedefs | |
typedef struct vsf_hw_usart_const_t | vsf_hw_usart_const_t |
typedef struct vsf_hw_usart_t | vsf_hw_usart_t |
Functions | |
vsf_err_t | vsf_hw_usart_init (vsf_hw_usart_t *hw_usart_ptr, vsf_usart_cfg_t *cfg_ptr) |
void | vsf_hw_usart_fini (vsf_hw_usart_t *hw_usart_ptr) |
vsf_usart_capability_t | vsf_hw_usart_capability (vsf_hw_usart_t *hw_usart_ptr) |
fsm_rt_t | vsf_hw_usart_enable (vsf_hw_usart_t *hw_usart_ptr) |
fsm_rt_t | vsf_hw_usart_disable (vsf_hw_usart_t *hw_usart_ptr) |
void | vsf_hw_usart_irq_enable (vsf_hw_usart_t *hw_usart_ptr, vsf_usart_irq_mask_t irq_mask) |
void | vsf_hw_usart_irq_disable (vsf_hw_usart_t *hw_usart_ptr, vsf_usart_irq_mask_t irq_mask) |
vsf_usart_status_t | vsf_hw_usart_status (vsf_hw_usart_t *hw_usart_ptr) |
uint_fast16_t | vsf_hw_usart_rxfifo_get_data_count (vsf_hw_usart_t *hw_usart_ptr) |
uint_fast16_t | vsf_hw_usart_rxfifo_read (vsf_hw_usart_t *hw_usart_ptr, void *buffer_ptr, uint_fast16_t count) |
uint_fast16_t | vsf_hw_usart_txfifo_get_free_count (vsf_hw_usart_t *hw_usart_ptr) |
uint_fast16_t | vsf_hw_usart_txfifo_write (vsf_hw_usart_t *hw_usart_ptr, void *buffer_ptr, uint_fast16_t count) |
#define VSF_HW_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS |
#define VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_USART_CFG_IMP_PREFIX __vsf_hw |
#define VSF_USART_CFG_IMP_UPCASE_PREFIX __VSF_HW |
#define VSF_USART_CFG_IMP_COUNT_MASK_PREFIX VSF_HW |
#define VSF_USART_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
#define VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_USART_CFG_REIMPLEMENT_API_REQUEST ENABLED |
#define VSF_USART_CFG_IMP_PREFIX vsf_hw |
#define VSF_USART_CFG_IMP_UPCASE_PREFIX vsf_hw |
#define VSF_USART_CFG_IMP_REMAP_PREFIX vsf_fifo2req |
#define VSF_USART_CFG_IMP_LV0 | ( | __COUNT, | |
__HAL_OP | |||
) |
typedef struct vsf_hw_usart_const_t vsf_hw_usart_const_t |
typedef struct vsf_hw_usart_t vsf_hw_usart_t |
vsf_err_t vsf_hw_usart_init | ( | vsf_hw_usart_t * | hw_usart_ptr, |
vsf_usart_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_usart_fini | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
vsf_usart_capability_t vsf_hw_usart_capability | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
fsm_rt_t vsf_hw_usart_enable | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
fsm_rt_t vsf_hw_usart_disable | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
void vsf_hw_usart_irq_enable | ( | vsf_hw_usart_t * | hw_usart_ptr, |
vsf_usart_irq_mask_t | irq_mask | ||
) |
void vsf_hw_usart_irq_disable | ( | vsf_hw_usart_t * | hw_usart_ptr, |
vsf_usart_irq_mask_t | irq_mask | ||
) |
vsf_usart_status_t vsf_hw_usart_status | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
uint_fast16_t vsf_hw_usart_rxfifo_get_data_count | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
uint_fast16_t vsf_hw_usart_rxfifo_read | ( | vsf_hw_usart_t * | hw_usart_ptr, |
void * | buffer_ptr, | ||
uint_fast16_t | count | ||
) |
uint_fast16_t vsf_hw_usart_txfifo_get_free_count | ( | vsf_hw_usart_t * | hw_usart_ptr | ) |
uint_fast16_t vsf_hw_usart_txfifo_write | ( | vsf_hw_usart_t * | hw_usart_ptr, |
void * | buffer_ptr, | ||
uint_fast16_t | count | ||
) |