Go to the source code of this file.
◆ VSF_RNG_CFG_MULTI_CLASS
#define VSF_RNG_CFG_MULTI_CLASS ENABLED |
◆ VSF_RNG_CFG_PREFIX
#define VSF_RNG_CFG_PREFIX vsf |
◆ VSF_RNG_CFG_FUNCTION_RENAME
#define VSF_RNG_CFG_FUNCTION_RENAME ENABLED |
◆ VSF_RNG_CFG_REIMPLEMENT_TYPE_CFG
#define VSF_RNG_CFG_REIMPLEMENT_TYPE_CFG DISABLED |
Redefine struct vsf_rng_cfg_t. The vsf_rng_isr_handler_t type also needs to be redefined For compatibility, members should not be deleted when struct vsf_rng_cfg_t redefining.
◆ VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY
#define VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
◆ VSF_RNG_CFG_INHERT_HAL_CAPABILITY
#define VSF_RNG_CFG_INHERT_HAL_CAPABILITY ENABLED |
◆ VSF_RNG_APIS
#define VSF_RNG_APIS |
( |
|
__prefix_name | ) |
|
Value:
__VSF_HAL_TEMPLATE_API(__prefix_name,
void, rng, fini,
VSF_MCONNECT(__prefix_name, _rng_t) *rng_ptr) \
__VSF_HAL_TEMPLATE_API(__prefix_name,
vsf_err_t, rng, generate_request,
VSF_MCONNECT(__prefix_name, _rng_t) *rng_ptr, \
vsf_err_t
Definition __type.h:42
struct VSF_MCONNECT(VSF_FLASH_CFG_IMP_PREFIX, _flash_t)
Definition flash.c:53
__le16 capability
Definition ieee80211.h:134
unsigned int uint32_t
Definition lvgl.h:43
Definition vsf_template_rng.h:92
void vsf_rng_on_ready_callback_t(void *param, uint32_t *buffer, uint32_t num)
Definition vsf_template_rng.h:90
#define __VSF_HAL_TEMPLATE_API
Definition vsf_template_rng.h:100
◆ __VSF_HAL_TEMPLATE_API
◆ __vsf_rng_t
◆ vsf_rng_init
◆ vsf_rng_fini
◆ vsf_rng_capability
◆ vsf_rng_generate_request
◆ vsf_rng_t
◆ vsf_rng_on_ready_callback_t
typedef void vsf_rng_on_ready_callback_t(void *param, uint32_t *buffer, uint32_t num) |
◆ vsf_rng_capability_t
◆ vsf_rng_op_t
◆ vsf_rng_init()
initialize a rng instance.
- Parameters
-
[in] | rng_ptr | a pointer to structure vsf_rng_t |
[in] | cfg_ptr | a pointer to structure vsf_rng_cfg_t |
- Returns
- vsf_err_t: VSF_ERR_NONE if rng was initialized, or a negative error code
- Note
- It is not necessary to call vsf_rng_fini() to deinitialization. vsf_rng_init() should be called before any other rng API except vsf_rng_capability().
◆ vsf_rng_fini()
finalize a rng instance.
- Parameters
-
- Returns
- none
◆ vsf_rng_capability()
◆ vsf_rng_generate_request()
rng generate request
- Parameters
-
[in] | rng_ptr | a pointer to structure vsf_rng_t |
[in] | buffer | rng data buffer |
[in] | num | the length of rng data buffer |
[in] | param | call back param |
[in] | on_ready_cb | call back |
- Returns
- vsf_err_t: VSF_ERR_NONE if rng generate request was successfully, or a negative error code