![]() |
SX126x-Arduino
2.0.1
|
Macros | |
#define | RAND_LOCAL_MAX 2147483647L |
Functions | |
int32_t | rand1 (void) |
void | srand1 (uint32_t seed) |
Initializes the pseudo random generator initial value. More... | |
int32_t | randr (int32_t min, int32_t max) |
Computes a random number between min and max. More... | |
void | memcpy1 (uint8_t *dst, const uint8_t *src, uint16_t size) |
Copies size elements of src array to dst array. More... | |
void | memcpyr (uint8_t *dst, const uint8_t *src, uint16_t size) |
Copies size elements of src array to dst array reversing the byte order. More... | |
void | memset1 (uint8_t *dst, uint8_t value, uint16_t size) |
Set size elements of dst array with value. More... | |
int8_t | Nibble2HexChar (uint8_t a) |
Converts a nibble to an hexadecimal character. More... | |
Variables | |
static uint32_t | next = 1 |
#define RAND_LOCAL_MAX 2147483647L |
Redefinition of rand() and srand() standard C functions. These functions are redefined in order to get the same behavior across different compiler toolchains implementations.
int32_t rand1 | ( | void | ) |
void srand1 | ( | uint32_t | seed | ) |
Initializes the pseudo random generator initial value.
seed | Pseudo random generator initial value |
int32_t randr | ( | int32_t | min, |
int32_t | max | ||
) |
Computes a random number between min and max.
min | range minimum value |
max | range maximum value |
random | random value in range min..max |
void memcpy1 | ( | uint8_t * | dst, |
const uint8_t * | src, | ||
uint16_t | size | ||
) |
Copies size elements of src array to dst array.
dst | Destination array |
src | Source array |
size | Number of bytes to be copied |
void memcpyr | ( | uint8_t * | dst, |
const uint8_t * | src, | ||
uint16_t | size | ||
) |
Copies size elements of src array to dst array reversing the byte order.
dst | Destination array |
src | Source array |
size | Number of bytes to be copied |
void memset1 | ( | uint8_t * | dst, |
uint8_t | value, | ||
uint16_t | size | ||
) |
Set size elements of dst array with value.
dst | Destination array |
value | Default value |
size | Number of bytes to be copied |
int8_t Nibble2HexChar | ( | uint8_t | a | ) |
Converts a nibble to an hexadecimal character.
a | Nibble to be converted |
hexChar | Converted hexadecimal character |
|
static |