phyphox BLE
Plot your Arduino's data in the phyphox app and control the board from the phone
Loading...
Searching...
No Matches
phyphox::CountingSink Class Reference

Counts bytes and accumulates the CRC-32 — the first pass at start(), which yields the transfer header (size, CRC) and the part table. More...

#include <Sink.h>

Inheritance diagram for phyphox::CountingSink:

Public Member Functions

void write (const uint8_t *data, size_t len) override
 
size_t count () const
 
uint32_t crc () const
 
void reset ()
 
virtual void write (const uint8_t *data, size_t len)=0
 
void write (const char *text)
 
void write (char c)
 
- Public Member Functions inherited from phyphox::Sink
virtual ~Sink ()
 
void write (const char *text)
 
void write (char c)
 

Detailed Description

Counts bytes and accumulates the CRC-32 — the first pass at start(), which yields the transfer header (size, CRC) and the part table.

Member Function Documentation

◆ count()

size_t phyphox::CountingSink::count ( ) const
inline

◆ crc()

uint32_t phyphox::CountingSink::crc ( ) const
inline

◆ reset()

void phyphox::CountingSink::reset ( )
inline

◆ write() [1/4]

void phyphox::Sink::write ( char  c)
inline

◆ write() [2/4]

void phyphox::Sink::write ( const char *  text)

◆ write() [3/4]

void phyphox::CountingSink::write ( const uint8_t *  data,
size_t  len 
)
inlineoverridevirtual

Implements phyphox::Sink.

◆ write() [4/4]

virtual void phyphox::Sink::write ( const uint8_t *  data,
size_t  len 
)
virtual

Implements phyphox::Sink.


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