VSF Documented
Data Structures | Macros | Typedefs | Functions
vsf_input.c File Reference
#include "./vsf_input_cfg.h"
#include "./vsf_input.h"
#include "kernel/vsf_kernel.h"
#include "utilities/vsf_utilities.h"

Data Structures

struct  vsf_input_t
 

Macros

#define __VSF_INPUT_CLASS_IMPLEMENT
 
#define VSF_INPUT_CFG_PROTECT_LEVEL   interrupt
 
#define vsf_input_protect   vsf_protect(VSF_INPUT_CFG_PROTECT_LEVEL)
 
#define vsf_input_unprotect   vsf_unprotect(VSF_INPUT_CFG_PROTECT_LEVEL)
 

Typedefs

typedef struct vsf_input_t vsf_input_t
 

Functions

void vk_input_buf_set (uint8_t *buf, uint_fast8_t offset, uint_fast8_t len)
 
void vk_input_buf_clear (uint8_t *buf, uint_fast8_t offset, uint_fast8_t len)
 
uint_fast32_t vk_input_buf_get_value (uint8_t *buf, uint_fast8_t offset, uint_fast8_t len)
 
void vk_input_buf_set_value (uint8_t *buf, uint_fast8_t offset, uint_fast8_t len, uint_fast32_t value)
 
vk_input_item_info_tvk_input_parse (vk_input_parser_t *parser, uint8_t *pre, uint8_t *cur)
 
void vsf_input_on_new_dev (vk_input_type_t type, void *dev)
 
void vsf_input_on_free_dev (vk_input_type_t type, void *dev)
 
void vsf_input_on_evt (vk_input_type_t type, vk_input_evt_t *evt)
 
uint_fast32_t vk_input_update_timestamp (vk_input_timestamp_t *timestamp)
 
void vk_input_notifier_register (vk_input_notifier_t *notifier)
 
void vk_input_notifier_unregister (vk_input_notifier_t *notifier)
 

Macro Definition Documentation

◆ __VSF_INPUT_CLASS_IMPLEMENT

#define __VSF_INPUT_CLASS_IMPLEMENT

◆ VSF_INPUT_CFG_PROTECT_LEVEL

#define VSF_INPUT_CFG_PROTECT_LEVEL   interrupt
Note
By default, the driver tries to make all APIs interrupt-safe, ! ! in the case when you want to disable it, ! please use following macro: ! #define VSF_INPUT_CFG_PROTECT_LEVEL none ! ! in the case when you want to use scheduler-safe, ! please use following macro: ! #define VSF_INPUT_CFG_PROTECT_LEVEL scheduler ! ! NOTE: This macro should be defined in vsf_usr_cfg.h

◆ vsf_input_protect

#define vsf_input_protect   vsf_protect(VSF_INPUT_CFG_PROTECT_LEVEL)

◆ vsf_input_unprotect

#define vsf_input_unprotect   vsf_unprotect(VSF_INPUT_CFG_PROTECT_LEVEL)

Typedef Documentation

◆ vsf_input_t

typedef struct vsf_input_t vsf_input_t

Function Documentation

◆ vk_input_buf_set()

void vk_input_buf_set ( uint8_t buf,
uint_fast8_t  offset,
uint_fast8_t  len 
)

◆ vk_input_buf_clear()

void vk_input_buf_clear ( uint8_t buf,
uint_fast8_t  offset,
uint_fast8_t  len 
)

◆ vk_input_buf_get_value()

uint_fast32_t vk_input_buf_get_value ( uint8_t buf,
uint_fast8_t  offset,
uint_fast8_t  len 
)

◆ vk_input_buf_set_value()

void vk_input_buf_set_value ( uint8_t buf,
uint_fast8_t  offset,
uint_fast8_t  len,
uint_fast32_t  value 
)

◆ vk_input_parse()

vk_input_item_info_t * vk_input_parse ( vk_input_parser_t parser,
uint8_t pre,
uint8_t cur 
)

◆ vsf_input_on_new_dev()

void vsf_input_on_new_dev ( vk_input_type_t  type,
void *  dev 
)

◆ vsf_input_on_free_dev()

void vsf_input_on_free_dev ( vk_input_type_t  type,
void *  dev 
)

◆ vsf_input_on_evt()

void vsf_input_on_evt ( vk_input_type_t  type,
vk_input_evt_t evt 
)

◆ vk_input_update_timestamp()

uint_fast32_t vk_input_update_timestamp ( vk_input_timestamp_t timestamp)

◆ vk_input_notifier_register()

void vk_input_notifier_register ( vk_input_notifier_t notifier)

◆ vk_input_notifier_unregister()

void vk_input_notifier_unregister ( vk_input_notifier_t notifier)