Reads n numbers from an Arduino Stream.
More...
#include <BaseConverter.h>
|
| | NumberReader () |
| |
| | NumberReader (Stream &in) |
| |
| bool | read (int inBits, int outBits, bool outSigned, int n, int32_t *result) |
| |
| bool | toNumbers (void *bufferIn, int inBits, int outBits, bool outSigned, int n, int32_t *result) |
| | converts a buffer to a number array
|
| |
|
| int32_t | scale (int32_t value, int inBits, int outBits, bool outSigned=true) |
| | scale the value
|
| |
Reads n numbers from an Arduino Stream.
◆ NumberReader() [1/2]
◆ NumberReader() [2/2]
◆ read()
| bool read |
( |
int |
inBits, |
|
|
int |
outBits, |
|
|
bool |
outSigned, |
|
|
int |
n, |
|
|
int32_t * |
result |
|
) |
| |
|
inline |
◆ scale()
| int32_t scale |
( |
int32_t |
value, |
|
|
int |
inBits, |
|
|
int |
outBits, |
|
|
bool |
outSigned = true |
|
) |
| |
|
inlineprotected |
◆ toNumbers()
| bool toNumbers |
( |
void * |
bufferIn, |
|
|
int |
inBits, |
|
|
int |
outBits, |
|
|
bool |
outSigned, |
|
|
int |
n, |
|
|
int32_t * |
result |
|
) |
| |
|
inline |
converts a buffer to a number array
◆ stream_ptr
The documentation for this class was generated from the following file: