VSF Documented
|
#include "../driver.h"
#include "service/vsf_service.h"
#include <Windows.h>
#include <SetupAPI.h>
#include "hal/driver/common/usart/usart_template.inc"
Data Structures | |
struct | vsf_win_usart_t |
struct | vsf_win_usart_port_t |
Macros | |
#define | __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define | VSF_WIN_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS |
#define | VSF_WIN_USART_CFG_TX_BLOCK DISABLED |
#define | VSF_WIN_USART_CFG_FIFO_SIZE 1024 |
#define | VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL interrupt |
#define | __vsf_usart_protect vsf_protect(VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL) |
#define | __vsf_usart_unprotect vsf_unprotect(VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL) |
#define | VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_USART_CFG_IMP_PREFIX vsf_win |
#define | VSF_USART_CFG_IMP_UPCASE_PREFIX VSF_WIN |
#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_COUNT_MASK_PREFIX VSF_WIN |
#define | VSF_USART_CFG_IMP_REMAP_PREFIX vsf_fifo2req |
#define | VSF_USART_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct vsf_win_usart_t | vsf_win_usart_t |
typedef struct vsf_win_usart_port_t | vsf_win_usart_port_t |
#define __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
#define VSF_WIN_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS |
#define VSF_WIN_USART_CFG_TX_BLOCK DISABLED |
#define VSF_WIN_USART_CFG_FIFO_SIZE 1024 |
#define VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL interrupt |
#define __vsf_usart_protect vsf_protect(VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL) |
#define __vsf_usart_unprotect vsf_unprotect(VSF_HAL_DISTBUS_USART_CFG_PROTECT_LEVEL) |
#define VSF_USART_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_USART_CFG_IMP_PREFIX vsf_win |
#define VSF_USART_CFG_IMP_UPCASE_PREFIX VSF_WIN |
#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_COUNT_MASK_PREFIX VSF_WIN |
#define VSF_USART_CFG_IMP_REMAP_PREFIX vsf_fifo2req |
#define VSF_USART_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct vsf_win_usart_t vsf_win_usart_t |
typedef struct vsf_win_usart_port_t vsf_win_usart_port_t |
uint8_t vsf_win_usart_scan_devices | ( | vsf_usart_win_device_t * | devices, |
uint8_t | device_num | ||
) |
vsf_err_t vsf_win_usart_init | ( | vsf_win_usart_t * | win_usart, |
vsf_usart_cfg_t * | cfg | ||
) |
void vsf_win_usart_fini | ( | vsf_win_usart_t * | win_usart | ) |
vsf_usart_capability_t vsf_win_usart_capability | ( | vsf_win_usart_t * | win_usart | ) |
fsm_rt_t vsf_win_usart_enable | ( | vsf_win_usart_t * | win_usart | ) |
fsm_rt_t vsf_win_usart_disable | ( | vsf_win_usart_t * | win_usart | ) |
void vsf_win_usart_irq_enable | ( | vsf_win_usart_t * | win_usart, |
vsf_usart_irq_mask_t | irq_mask | ||
) |
void vsf_win_usart_irq_disable | ( | vsf_win_usart_t * | win_usart, |
vsf_usart_irq_mask_t | irq_mask | ||
) |
vsf_usart_status_t vsf_win_usart_status | ( | vsf_win_usart_t * | win_usart | ) |
uint_fast16_t vsf_win_usart_rxfifo_get_data_count | ( | vsf_win_usart_t * | win_usart | ) |
uint_fast16_t vsf_win_usart_rxfifo_read | ( | vsf_win_usart_t * | win_usart, |
void * | buffer, | ||
uint_fast16_t | size | ||
) |
uint_fast16_t vsf_win_usart_txfifo_get_free_count | ( | vsf_win_usart_t * | win_usart | ) |
uint_fast16_t vsf_win_usart_txfifo_write | ( | vsf_win_usart_t * | win_usart, |
void * | buffer, | ||
uint_fast16_t | size | ||
) |