arduino-emulator
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
arduino::HardwareService Class Reference

#include <HardwareService.h>

Public Member Functions

 HardwareService (void *str)
 
void flush ()
 
uint16_t receive (void *data, int len)
 
uint16_t receive16 ()
 
uint32_t receive32 ()
 
uint64_t receive64 ()
 
uint8_t receive8 ()
 
void send (bool data)
 
void send (HWCalls call)
 
void send (int32_t dataIn)
 
void send (int64_t dataIn)
 
void send (uint16_t dataIn)
 
void send (uint32_t dataIn)
 
void send (uint64_t dataIn)
 
void send (uint8_t data)
 
void send (void *data, size_t len)
 
void setStream (Stream *str)
 

Protected Member Functions

bool is_big_endian (void)
 
int16_t swap_int16 (int16_t val)
 Byte swap short.
 
int32_t swap_int32 (int32_t val)
 Byte swap int.
 
int64_t swap_int64 (int64_t val)
 
uint16_t swap_uint16 (uint16_t val)
 Byte swap unsigned short.
 
uint32_t swap_uint32 (uint32_t val)
 Byte swap unsigned int.
 
uint64_t swap_uint64 (uint64_t val)
 

Protected Attributes

Streamio
 
bool isLittleEndian = !is_big_endian()
 

Detailed Description

Stream over which we tunnel the SPI, I2C, I2S and GPIO messages. Since most embedded divices are little endian we communicate in little endian!


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