arduino-audio-tools
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
NumberReader Class Reference

Reads n numbers from an Arduino Stream. More...

#include <BaseConverter.h>

Public Member Functions

 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
 

Protected Member Functions

int32_t scale (int32_t value, int inBits, int outBits, bool outSigned=true)
 scale the value
 

Protected Attributes

Streamstream_ptr = nullptr
 

Detailed Description

Reads n numbers from an Arduino Stream.


The documentation for this class was generated from the following file: