Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Public APIs for the entropy driver. More...
#include <errno.h>
#include <zephyr/types.h>
#include <zephyr/device.h>
#include <zephyr/syscalls/entropy.h>
Go to the source code of this file.
Data Structures | |
struct | entropy_driver_api |
Entropy driver API structure. More... | |
Macros | |
#define | ENTROPY_BUSYWAIT BIT(0) |
Driver is allowed to busy-wait for random data to be ready. | |
Typedefs | |
typedef int(* | entropy_get_entropy_t) (const struct device *dev, uint8_t *buffer, uint16_t length) |
Callback API to get entropy. | |
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. | |
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. | |
Public APIs for the entropy driver.