|
VSF Documented
|
#include "hal/vsf_hal.h"#include "service/vsf_service.h"#include <Windows.h>#include <SetupAPI.h>#include "hal/driver/common/usart/usart_template.inc"Data Structures | |
| struct | vsf_hostos_usart_t |
| struct | vsf_hostos_usart_port_t |
Typedefs | |
| typedef struct vsf_hostos_usart_t | vsf_hostos_usart_t |
| typedef struct vsf_hostos_usart_port_t | vsf_hostos_usart_port_t |
| #define __VSF_SIMPLE_STREAM_CLASS_INHERIT__ |
| #define VSF_HOSTOS_USART_CFG_MULTI_CLASS VSF_USART_CFG_MULTI_CLASS |
| #define VSF_HOSTOS_USART_CFG_TX_BLOCK DISABLED |
| #define VSF_HOSTOS_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_hostos |
| #define VSF_USART_CFG_IMP_UPCASE_PREFIX VSF_HOSTOS |
| #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_HOSTOS_USART_PREFIX |
| #define VSF_USART_CFG_IMP_UPCASE_PREFIX VSF_HOSTOS_USART_UPCASE_PREFIX |
| #define VSF_USART_CFG_IMP_COUNT_MASK_PREFIX VSF_HOSTOS |
| #define VSF_USART_CFG_IMP_REMAP_PREFIX vsf_fifo2req |
| #define VSF_USART_CFG_IMP_LV0 | ( | __IDX, | |
| __HAL_OP | |||
| ) |
| typedef struct vsf_hostos_usart_t vsf_hostos_usart_t |
| typedef struct vsf_hostos_usart_port_t vsf_hostos_usart_port_t |
| uint8_t vsf_hostos_usart_scan_devices | ( | vsf_hostos_usart_device_t * | devices, |
| uint8_t | device_num | ||
| ) |
| vsf_err_t vsf_hostos_usart_init | ( | vsf_hostos_usart_t * | hostos_usart, |
| vsf_usart_cfg_t * | cfg | ||
| ) |
| void vsf_hostos_usart_fini | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| vsf_usart_capability_t vsf_hostos_usart_capability | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| fsm_rt_t vsf_hostos_usart_enable | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| fsm_rt_t vsf_hostos_usart_disable | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| void vsf_hostos_usart_irq_enable | ( | vsf_hostos_usart_t * | hostos_usart, |
| vsf_usart_irq_mask_t | irq_mask | ||
| ) |
| void vsf_hostos_usart_irq_disable | ( | vsf_hostos_usart_t * | hostos_usart, |
| vsf_usart_irq_mask_t | irq_mask | ||
| ) |
| vsf_usart_status_t vsf_hostos_usart_status | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| uint_fast16_t vsf_hostos_usart_rxfifo_get_data_count | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| uint_fast16_t vsf_hostos_usart_rxfifo_read | ( | vsf_hostos_usart_t * | hostos_usart, |
| void * | buffer, | ||
| uint_fast16_t | size | ||
| ) |
| uint_fast16_t vsf_hostos_usart_txfifo_get_free_count | ( | vsf_hostos_usart_t * | hostos_usart | ) |
| uint_fast16_t vsf_hostos_usart_txfifo_write | ( | vsf_hostos_usart_t * | hostos_usart, |
| void * | buffer, | ||
| uint_fast16_t | size | ||
| ) |