|
Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Entropy Interface. More...
Data Structures | |
| struct | entropy_driver_api |
Macros | |
| #define | ENTROPY_BUSYWAIT BIT(0) |
Typedefs | |
| typedef int(* | entropy_get_entropy_t) (const struct device *dev, uint8_t *buffer, uint16_t length) |
| Callback API to get entropy. More... | |
| typedef int(* | entropy_get_entropy_isr_t) (const struct device *dev, uint8_t *buffer, uint16_t length, uint32_t flags) |
| Callback API to get entropy from an ISR. More... | |
Functions | |
| int | entropy_get_entropy (const struct device *dev, uint8_t *buffer, uint16_t length) |
| Fills a buffer with entropy. Blocks if required in order to generate the necessary random data. More... | |
| static int | entropy_get_entropy_isr (const struct device *dev, uint8_t *buffer, uint16_t length, uint32_t flags) |
| Fills a buffer with entropy in a non-blocking or busy-wait manner. Callable from ISRs. More... | |
Entropy Interface.
| #define ENTROPY_BUSYWAIT BIT(0) |
#include <include/drivers/entropy.h>
| entropy_get_entropy_isr_t |
#include <include/drivers/entropy.h>
Callback API to get entropy from an ISR.
See entropy_get_entropy_isr() for argument description
| entropy_get_entropy_t |
#include <include/drivers/entropy.h>
Callback API to get entropy.
See entropy_get_entropy() for argument description
#include <include/drivers/entropy.h>
Fills a buffer with entropy. Blocks if required in order to generate the necessary random data.
| dev | Pointer to the entropy device. |
| buffer | Buffer to fill with entropy. |
| length | Buffer length. |
| 0 | on success. |
| -ERRNO | errno code on error. |
|
inlinestatic |
#include <include/drivers/entropy.h>
Fills a buffer with entropy in a non-blocking or busy-wait manner. Callable from ISRs.
| dev | Pointer to the device structure. |
| buffer | Buffer to fill with entropy. |
| length | Buffer length. |
| flags | Flags to modify the behavior of the call. |
| number | of bytes filled with entropy or -error. |