modm API documentation
ModmHardware< Uart > Class Template Reference

#include <modm/communication/ros/ros_modm_hardware.hpp>

Public Member Functions

void init ()
 
int read ()
 
void write (uint8_t *data, int length)
 
unsigned long time ()
 

Detailed Description

template<class Uart>
class ModmHardware< Uart >

Interface between rosserial and actual hardware. Must provide: void init() To initialize. Called from the NodeHandle::initNode.

int read() To read a single character from the bytestream. If no character to read, then return -1.

void write(uint8_t* data, int length) To write multiple characters to the bytestream.

unsigend long time() Get time in milliseconds since start. Monotonic increasing clock.


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