forked from youen/OneWireArduinoSlave
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
292 B
22 lines
292 B
10 years ago
|
#ifndef _SerialChannel_h_
|
||
|
#define _SerialChannel_h_
|
||
|
|
||
|
class SerialChannel
|
||
|
{
|
||
|
private:
|
||
|
static short nextId;
|
||
|
short id;
|
||
|
|
||
|
public:
|
||
|
SerialChannel();
|
||
|
|
||
|
void init(const char* name);
|
||
|
|
||
|
void write(byte* data, short byteCount);
|
||
|
|
||
|
void write(const char* text);
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|