|
Zephyr API Documentation 4.4.0-rc1
A Scalable Open Source RTOS
|
Interfaces for entropy hardware. More...
Topics | |
| Entropy Driver Backend API | |
Files | |
| file | entropy.h |
| Main header file for entropy driver API. | |
Macros | |
| #define | ENTROPY_BUSYWAIT BIT(0) |
| Driver is allowed to busy-wait for random data to be ready. | |
Functions | |
| int | entropy_get_entropy (const struct device *dev, uint8_t *buffer, uint16_t length) |
| Fills a buffer with entropy. | |
| 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. | |
Interfaces for entropy hardware.
| #define ENTROPY_BUSYWAIT BIT(0) |
#include <zephyr/drivers/entropy.h>
Driver is allowed to busy-wait for random data to be ready.
#include <zephyr/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 <zephyr/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. |
| -ENOSYS | Driver does not implement the function |