Implementation of nRF24LE1 specific Device functions for the Gazell pairing library. More...
#include <stdint.h>
#include <stdbool.h>
#include "gzll.h"
#include "gzp.h"
#include "hal_rng.h"
Go to the source code of this file.
Functions | |
void | gzp_random_numbers_generate (uint8_t *dst, uint8_t n) |
Implementation of nRF24LE1 specific Device functions for the Gazell pairing library.
Definition in file gzp_device_le1.c.
void gzp_random_numbers_generate | ( | uint8_t * | dst, |
uint8_t | n | ||
) |
Function generating and returning n random numbers to dst.
Definition at line 30 of file gzp_device_le1.c.
{ uint8_t i; hal_rng_power_up(true); for(i = 0; i < n; i++) { while(!hal_rng_data_ready()) ; *(dst++) = hal_rng_read(); } hal_rng_power_up(false); }