Khangai Robot Play - Naive  01
THe naive play of the Khangai Robot
Arduino_Device Class Reference

#include <arduino.h>

Collaboration diagram for Arduino_Device:

Public Member Functions

 Arduino_Device (uint8_t id, uint8_t num_bytes)
 
 Arduino_Device (Arduino_Device &&)=default
 
 Arduino_Device (const Arduino_Device &)=default
 
Arduino_Deviceoperator= (Arduino_Device &&)=default
 
Arduino_Deviceoperator= (const Arduino_Device &)=default
 
 ~Arduino_Device ()
 
float read ()
 
bool available ()
 
void denit ()
 
int read (uint8_t *buf, uint16_t len)
 
uint8_t get_ID () const
 
int write (uint8_t *buf, uint16_t len)
 
void store (float val)
 

Static Public Member Functions

static int init ()
 

Private Attributes

Queue< float, 2 > rx_data_
 
uint8_t id_
 

Static Private Attributes

static bool initiated = false
 

Constructor & Destructor Documentation

◆ Arduino_Device() [1/3]

Arduino_Device::Arduino_Device ( uint8_t  id,
uint8_t  num_bytes 
)
Here is the call graph for this function:

◆ Arduino_Device() [2/3]

Arduino_Device::Arduino_Device ( Arduino_Device &&  )
default

◆ Arduino_Device() [3/3]

Arduino_Device::Arduino_Device ( const Arduino_Device )
default

◆ ~Arduino_Device()

Arduino_Device::~Arduino_Device ( )
inline

Member Function Documentation

◆ available()

bool Arduino_Device::available ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ denit()

void Arduino_Device::denit ( )

◆ get_ID()

uint8_t Arduino_Device::get_ID ( ) const
inline

◆ init()

int Arduino_Device::init ( )
static
Here is the caller graph for this function:

◆ operator=() [1/2]

Arduino_Device& Arduino_Device::operator= ( Arduino_Device &&  )
default

◆ operator=() [2/2]

Arduino_Device& Arduino_Device::operator= ( const Arduino_Device )
default

◆ read() [1/2]

float Arduino_Device::read ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [2/2]

int Arduino_Device::read ( uint8_t *  buf,
uint16_t  len 
)

◆ store()

void Arduino_Device::store ( float  val)
inline
Here is the call graph for this function:

◆ write()

int Arduino_Device::write ( uint8_t *  buf,
uint16_t  len 
)
Here is the call graph for this function:

Member Data Documentation

◆ id_

uint8_t Arduino_Device::id_
private

◆ initiated

bool Arduino_Device::initiated = false
staticprivate

◆ rx_data_

Queue<float, 2> Arduino_Device::rx_data_
private

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