|
VSF Documented
|
Go to the source code of this file.
Data Structures | |
| struct | vsf_rng_capability_t |
| struct | vsf_rng_op_t |
| struct | vsf_rng_t |
Macros | |
| #define | VSF_RNG_CFG_MULTI_CLASS ENABLED |
| Enable multi-class support by default for maximum availability. | |
| #define | VSF_RNG_CFG_PREFIX vsf |
| Convert count to mask in specific hardware driver. | |
| #define | VSF_RNG_CFG_FUNCTION_RENAME ENABLED |
| Disable VSF_RNG_CFG_FUNCTION_RENAME to use the original function names (e.g., vsf_rng_init()). | |
| #define | VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
| Enable macro VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY in specific hardware drivers to redefine struct vsf_rng_capability_t. For compatibility, members should not be deleted when redefining. | |
| #define | VSF_RNG_CFG_INHERIT_HAL_CAPABILITY ENABLED |
| Enable macro VSF_RNG_CFG_INHERIT_HAL_CAPABILITY to inherit the structure vsf_peripheral_capability_t. | |
| #define | VSF_RNG_CFG_REIMPLEMENT_TYPE_CTRL DISABLED |
| #define | VSF_RNG_APIS(__prefix_name) |
| RNG API template, used to generate RNG type, specific prefix function declarations, etc. | |
Typedefs | |
| typedef enum vsf_rng_ctrl_t | vsf_rng_ctrl_t |
| Predefined VSF RNG control commands that can be reimplemented in specific HAL drivers. | |
| typedef struct vsf_rng_t | vsf_rng_t |
| typedef void | vsf_rng_on_ready_callback_t(void *param, uint32_t *buffer, uint32_t num) |
| typedef struct vsf_rng_capability_t | vsf_rng_capability_t |
| typedef struct vsf_rng_op_t | vsf_rng_op_t |
Enumerations | |
| enum | vsf_rng_ctrl_t { __VSF_RNG_CTRL_DUMMY = 0 } |
| Predefined VSF RNG control commands that can be reimplemented in specific HAL drivers. More... | |
Functions | |
| vsf_err_t | vsf_rng_init (vsf_rng_t *rng_ptr) |
| Initialize a RNG instance. | |
| void | vsf_rng_fini (vsf_rng_t *rng_ptr) |
| Finalize a RNG instance. | |
| vsf_rng_capability_t | vsf_rng_capability (vsf_rng_t *rng_ptr) |
| Get the capability of RNG instance. | |
| vsf_err_t | vsf_rng_generate_request (vsf_rng_t *rng_ptr, uint32_t *buffer, uint32_t num, void *param, vsf_rng_on_ready_callback_t *on_ready_cb) |
| RNG generate request. | |
| vsf_err_t | vsf_rng_ctrl (vsf_rng_t *rng_ptr, vsf_rng_ctrl_t ctrl, void *param) |
| #define VSF_RNG_CFG_MULTI_CLASS ENABLED |
Enable multi-class support by default for maximum availability.
| #define VSF_RNG_CFG_PREFIX vsf |
Convert count to mask in specific hardware driver.
Convert mask to count in specific hardware driver.
We can redefine macro VSF_RNG_CFG_PREFIX to specify a prefix to call a specific driver directly in the application code.
| #define VSF_RNG_CFG_FUNCTION_RENAME ENABLED |
Disable VSF_RNG_CFG_FUNCTION_RENAME to use the original function names (e.g., vsf_rng_init()).
| #define VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY DISABLED |
Enable macro VSF_RNG_CFG_REIMPLEMENT_TYPE_CAPABILITY in specific hardware drivers to redefine struct vsf_rng_capability_t. For compatibility, members should not be deleted when redefining.
| #define VSF_RNG_CFG_INHERIT_HAL_CAPABILITY ENABLED |
Enable macro VSF_RNG_CFG_INHERIT_HAL_CAPABILITY to inherit the structure vsf_peripheral_capability_t.
| #define VSF_RNG_CFG_REIMPLEMENT_TYPE_CTRL DISABLED |
| #define VSF_RNG_APIS | ( | __prefix_name | ) |
RNG API template, used to generate RNG type, specific prefix function declarations, etc.
| [in] | __prefix_name | The prefix used for generating RNG functions. |
| typedef enum vsf_rng_ctrl_t vsf_rng_ctrl_t |
Predefined VSF RNG control commands that can be reimplemented in specific HAL drivers.
| typedef struct vsf_rng_capability_t vsf_rng_capability_t |
| typedef struct vsf_rng_op_t vsf_rng_op_t |
| enum vsf_rng_ctrl_t |
Predefined VSF RNG control commands that can be reimplemented in specific HAL drivers.
Initialize a RNG instance.
| [in] | rng_ptr | a pointer to structure vsf_rng_t |
|
extern |
|
extern |
Get the capability of RNG instance.
| [in] | rng_ptr | a pointer to structure vsf_rng_t |
|
extern |
RNG generate request.
| [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 | callback parameter |
| [in] | on_ready_cb | callback function |
|
extern |