#include <Arduino.h>
Go to the source code of this file.
|
| #define | POW2(n) (1 << n) |
| | Returns 2 raised to the power of n. More...
|
| |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
| |
| #define | MAX(a, b) ((a) < (b) ? (b) : (a)) |
| |
|
| 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...
|
| |
◆ POW2
| #define POW2 |
( |
|
n | ) |
(1 << n) |
Returns 2 raised to the power of n.
- Parameters
-
- Return values
-
| result | of raising 2 to the power n |
◆ MIN
| #define MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) |
Leaves the minimum of the two 32-bit arguments
◆ MAX
| #define MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (b) : (a)) |
Leaves the maximum of the two 32-bit arguments
◆ srand1()
| void srand1 |
( |
uint32_t |
seed | ) |
|
Initializes the pseudo random generator initial value.
- Parameters
-
| seed | Pseudo random generator initial value |
◆ randr()
| int32_t randr |
( |
int32_t |
min, |
|
|
int32_t |
max |
|
) |
| |
Computes a random number between min and max.
- Parameters
-
| min | range minimum value |
| max | range maximum value |
- Return values
-
| random | random value in range min..max |
◆ memcpy1()
| void memcpy1 |
( |
uint8_t * |
dst, |
|
|
const uint8_t * |
src, |
|
|
uint16_t |
size |
|
) |
| |
Copies size elements of src array to dst array.
- Parameters
-
| dst | Destination array |
| src | Source array |
| size | Number of bytes to be copied |
◆ memcpyr()
| 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.
- Parameters
-
| dst | Destination array |
| src | Source array |
| size | Number of bytes to be copied |
◆ memset1()
| void memset1 |
( |
uint8_t * |
dst, |
|
|
uint8_t |
value, |
|
|
uint16_t |
size |
|
) |
| |
Set size elements of dst array with value.
- Parameters
-
| dst | Destination array |
| value | Default value |
| size | Number of bytes to be copied |
◆ Nibble2HexChar()
| int8_t Nibble2HexChar |
( |
uint8_t |
a | ) |
|
Converts a nibble to an hexadecimal character.
- Parameters
-
- Return values
-
| hexChar | Converted hexadecimal character |