SX126x-Arduino
|
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.
[IN] | seed Pseudo random generator initial value |
int32_t randr | ( | int32_t | min, |
int32_t | max | ||
) |
Computes a random number between min and max.
[IN] | min range minimum value |
[IN] | 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.
[OUT] | dst Destination array |
[IN] | src Source array |
[IN] | 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.
[OUT] | dst Destination array |
[IN] | src Source array |
[IN] | 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.
[OUT] | dst Destination array |
[IN] | value Default value |
[IN] | size Number of bytes to be copied |
int8_t Nibble2HexChar | ( | uint8_t | a | ) |
Converts a nibble to an hexadecimal character.
[IN] | a Nibble to be converted |
hexChar | Converted hexadecimal character |
|
static |