diff --git a/docs/TinyLightProtocol_8h.html b/docs/TinyLightProtocol_8h.html index 9cf268d7..4219ec5c 100644 --- a/docs/TinyLightProtocol_8h.html +++ b/docs/TinyLightProtocol_8h.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -81,11 +81,11 @@
- - - - - + + + + +
@@ -93,7 +93,7 @@
- +
diff --git a/docs/TinyLightProtocol_8h__dep__incl.map b/docs/TinyLightProtocol_8h__dep__incl.map index 64eca21e..07df79a7 100644 --- a/docs/TinyLightProtocol_8h__dep__incl.map +++ b/docs/TinyLightProtocol_8h__dep__incl.map @@ -1,3 +1,3 @@ - + diff --git a/docs/TinyLightProtocol_8h__dep__incl.png b/docs/TinyLightProtocol_8h__dep__incl.png index 09386936..5ab6484e 100644 Binary files a/docs/TinyLightProtocol_8h__dep__incl.png and b/docs/TinyLightProtocol_8h__dep__incl.png differ diff --git a/docs/TinyLightProtocol_8h__incl.map b/docs/TinyLightProtocol_8h__incl.map index a7eb2616..500fc4e0 100644 --- a/docs/TinyLightProtocol_8h__incl.map +++ b/docs/TinyLightProtocol_8h__incl.map @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/docs/TinyLightProtocol_8h__incl.png b/docs/TinyLightProtocol_8h__incl.png index a4274765..163ec100 100644 Binary files a/docs/TinyLightProtocol_8h__incl.png and b/docs/TinyLightProtocol_8h__incl.png differ diff --git a/docs/TinyLightProtocol_8h_source.html b/docs/TinyLightProtocol_8h_source.html index 1bbcf182..49c0c0ce 100644 --- a/docs/TinyLightProtocol_8h_source.html +++ b/docs/TinyLightProtocol_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -69,9 +69,9 @@
Go to the documentation of this file.
1 /*
2  Copyright 2017-2019 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
27 #ifndef _TINY_LIGHT_PROTOCOL_H_
28 #define _TINY_LIGHT_PROTOCOL_H_
29 
30 #include "TinyPacket.h"
31 #include "proto/light/tiny_light.h"
32 
33 #ifdef ARDUINO
34 # include <HardwareSerial.h>
35 #else
36 # include <string.h>
37 #endif
38 
39 namespace Tiny {
40 
52 {
53 public:
54  inline ProtoLight(): m_data{} { }
55 
64  void begin (write_block_cb_t writecb,
65  read_block_cb_t readcb);
66 
67 #ifdef ARDUINO
68 
73  void beginToSerial();
74 
75 #ifdef HAVE_HWSERIAL1
76 
81  inline void beginToSerial1()
82  {
83  begin([](void *p, const void *b, int s)->int { return Serial1.write((const uint8_t *)b, s); },
84  [](void *p, void *b, int s)->int { return Serial1.readBytes((uint8_t *)b, s); });
85  }
86 #endif
87 
88 #ifdef HAVE_HWSERIAL2
89 
94  inline void beginToSerial2()
95  {
96  begin([](void *p, const void *b, int s)->int { return Serial2.write((const uint8_t *)b, s); },
97  [](void *p, void *b, int s)->int { return Serial2.readBytes((uint8_t *)b, s); });
98  }
99 #endif
100 
101 #ifdef HAVE_SERIALUSB
102 
107  inline void beginToSerialUSB()
108  {
109  begin([](void *p, const void *b, int s)->int { return SerialUSB.write((const char *)b, s); },
110  [](void *p, void *b, int s)->int { return SerialUSB.readBytes((char *)b, s); });
111  }
112 #endif
113 
114 #endif
115 
119  void end ();
120 
129  int write (char* buf, int size);
130 
139  int read (char* buf, int size);
140 
149  int write (IPacket &pkt);
150 
159  int read (IPacket &pkt);
160 
166  void disableCrc ();
167 
173  void enableCrc(hdlc_crc_t crc);
174 
182  bool enableCheckSum ();
183 
191  bool enableCrc16 ();
192 
201  bool enableCrc32 ();
202 
203 private:
204  STinyLightData m_data{};
205 
207 };
208 
213 } // Tiny namespace
214 
215 #endif
void enableCrc(hdlc_crc_t crc)
-
hdlc_crc_t
Definition: tiny_hdlc.h:51
+
hdlc_crc_t
Definition: tiny_hdlc.h:54
Tiny protocol Arduino API.
-
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:53
+
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:56
Definition: TinyLightProtocol.h:39
int read(char *buf, int size)
@@ -79,7 +79,7 @@
void beginToSerial2()
Definition: TinyLightProtocol.h:94
void begin(write_block_cb_t writecb, read_block_cb_t readcb)
-
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:139
+
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:141
int write(char *buf, int size)
Definition: tiny_light.h:51
Definition: TinyPacket.h:46
@@ -87,7 +87,7 @@
Tiny Light protocol API.
-
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:128
+
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:130
void beginToSerial1()
Definition: TinyLightProtocol.h:81
diff --git a/docs/TinyPacket_8h.html b/docs/TinyPacket_8h.html index b3dbaf5a..1e6fdace 100644 --- a/docs/TinyPacket_8h.html +++ b/docs/TinyPacket_8h.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -79,16 +79,19 @@ Include dependency graph for TinyPacket.h:
+ +
This graph shows which files directly or indirectly include this file:
- - - - + + + + +
diff --git a/docs/TinyPacket_8h__dep__incl.map b/docs/TinyPacket_8h__dep__incl.map index f941ff2b..8b470239 100644 --- a/docs/TinyPacket_8h__dep__incl.map +++ b/docs/TinyPacket_8h__dep__incl.map @@ -1,6 +1,7 @@ - - - - + + + + + diff --git a/docs/TinyPacket_8h__dep__incl.md5 b/docs/TinyPacket_8h__dep__incl.md5 index de4de3e9..4a76e9a5 100644 --- a/docs/TinyPacket_8h__dep__incl.md5 +++ b/docs/TinyPacket_8h__dep__incl.md5 @@ -1 +1 @@ -802a9114d87be2bfeb5466362d6fa9f4 \ No newline at end of file +6ae3379a23559936852ce4b8722a1a74 \ No newline at end of file diff --git a/docs/TinyPacket_8h__dep__incl.png b/docs/TinyPacket_8h__dep__incl.png index 5725f2fb..9da20d01 100644 Binary files a/docs/TinyPacket_8h__dep__incl.png and b/docs/TinyPacket_8h__dep__incl.png differ diff --git a/docs/TinyPacket_8h__incl.png b/docs/TinyPacket_8h__incl.png index 5d9b59ee..35961cae 100644 Binary files a/docs/TinyPacket_8h__incl.png and b/docs/TinyPacket_8h__incl.png differ diff --git a/docs/TinyPacket_8h_source.html b/docs/TinyPacket_8h_source.html index 639947f2..5b0d6346 100644 --- a/docs/TinyPacket_8h_source.html +++ b/docs/TinyPacket_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -68,10 +68,11 @@
TinyPacket.h
-Go to the documentation of this file.
1 /*
2  Copyright 2016-2019 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #ifndef _TINY_PACKET_H_
29 #define _TINY_PACKET_H_
30 
31 #ifdef ARDUINO
32 # include <HardwareSerial.h>
33 #else
34 # include <stdint.h>
35 # include <string.h>
36 #endif
37 
38 #include <stdio.h>
39 
40 namespace Tiny {
41 
46 class IPacket
47 {
48 public:
55  IPacket(char *buf, size_t size) { m_len = 0; m_size = size; m_buf = (uint8_t*)buf; m_p=0; }
56 
60  virtual ~IPacket() = default;
61 
65  void clear () { m_len = 0; m_p = 0; }
66 
72  void put (uint8_t byte) { m_buf[m_len++] = byte; }
73 
79  void put (char chr) { put((uint8_t)chr); }
80 
85  inline void put (uint16_t data) { m_buf[m_len++] = data & 0x00FF;
86  m_buf[m_len++] = data >> 8; }
87 
92  inline void put (uint32_t data) { put((uint16_t)(data & 0x0000FFFF));
93  put((uint16_t)(data >> 16)); }
94 
99  inline void put (int16_t data) { put((uint16_t)data); }
100 
105  inline void put (const char *str){ strncpy((char *)&m_buf[m_len], str, m_size - m_len);
106  m_len += strlen(str);
107  m_buf[m_len++] = 0; }
108 
113  inline void put (const IPacket &pkt){ memcpy(&m_buf[m_len], pkt.m_buf, pkt.m_len); m_len += pkt.m_len; }
114 
119  inline uint8_t getByte () { return m_buf[m_p++]; }
120 
125  inline char getChar () { return (char)IPacket::getByte(); }
126 
131  inline uint16_t getUint16() { uint16_t t = m_buf[m_p++]; return t | ((uint16_t)m_buf[m_p++] << 8); }
132 
137  inline int16_t getInt16 () { return (int16_t)(getUint16()); }
138 
143  inline uint32_t getUint32() { return getUint16() | ((uint32_t)getUint16())<<16; }
144 
149  inline char* getString () { char *p = (char *)&m_buf[m_p]; m_p += strlen(p) + 1; return p; }
150 
155  inline size_t size () const { return m_len; }
156 
161  inline size_t maxSize () const { return m_size; }
162 
167  inline char *data () { return (char*)m_buf; }
168 
172  uint8_t &operator[] (size_t idx) { return m_buf[idx]; }
173 
174 private:
175  friend class ProtoHd;
176  friend class IProtoFd;
177  friend class ProtoLight;
178 
179  uint8_t* m_buf;
180  int m_size;
181  int m_len;
182  int m_p;
183 };
184 
189 template <size_t S>
190 class Packet: public IPacket
191 {
192 public:
196  Packet(): IPacket(m_data, S) {}
197 
198 private:
199  char m_data[S];
200 };
201 
206 class PacketD: public IPacket
207 {
208 public:
213  PacketD(int size): IPacket((char *)(new uint8_t[size]), size) {}
214 
215  ~PacketD() { delete[] (uint8_t *)data(); }
216 
217 private:
218 };
219 
220 
221 } // Tiny namespace
222 
223 #endif
224 
size_t size() const
Definition: TinyPacket.h:155
-
Packet()
Definition: TinyPacket.h:196
+Go to the documentation of this file.
1 /*
2  Copyright 2016-2020 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #ifndef _TINY_PACKET_H_
29 #define _TINY_PACKET_H_
30 
31 #ifdef ARDUINO
32 # include <HardwareSerial.h>
33 #else
34 # include <stdint.h>
35 # include <string.h>
36 #endif
37 
38 #include <stdio.h>
39 
40 namespace Tiny {
41 
46 class IPacket
47 {
48 public:
55  IPacket(char *buf, size_t size) { m_len = 0; m_size = static_cast<int>(size); m_buf = (uint8_t*)buf; m_p=0; }
56 
60  virtual ~IPacket() = default;
61 
65  void clear () { m_len = 0; m_p = 0; }
66 
72  void put (uint8_t byte) { m_buf[m_len++] = byte; }
73 
79  void put (char chr) { put((uint8_t)chr); }
80 
85  inline void put (uint16_t data) { m_buf[m_len++] = data & 0x00FF;
86  m_buf[m_len++] = data >> 8; }
87 
92  inline void put (uint32_t data) { put((uint16_t)(data & 0x0000FFFF));
93  put((uint16_t)(data >> 16)); }
94 
99  inline void put (int16_t data) { put((uint16_t)data); }
100 
105  inline void put (const char *str){ strncpy((char *)&m_buf[m_len], str, m_size - m_len);
106  m_len += static_cast<int>(strlen(str));
107  m_buf[m_len++] = 0; }
108 
113  inline void put (const IPacket &pkt){ memcpy(&m_buf[m_len], pkt.m_buf, pkt.m_len); m_len += pkt.m_len; }
114 
119  inline uint8_t getByte () { return m_buf[m_p++]; }
120 
125  inline char getChar () { return (char)IPacket::getByte(); }
126 
131  inline uint16_t getUint16() { uint16_t t = m_buf[m_p++]; return t | ((uint16_t)m_buf[m_p++] << 8); }
132 
137  inline int16_t getInt16 () { return (int16_t)(getUint16()); }
138 
143  inline uint32_t getUint32() { return getUint16() | ((uint32_t)getUint16())<<16; }
144 
149  inline char* getString () { char *p = (char *)&m_buf[m_p]; m_p += static_cast<int>(strlen(p)) + 1; return p; }
150 
155  inline size_t size () const { return m_len; }
156 
161  inline size_t maxSize () const { return m_size; }
162 
167  inline char *data () { return (char*)m_buf; }
168 
172  uint8_t &operator[] (size_t idx) { return m_buf[idx]; }
173 
174 private:
175  friend class ProtoHdlc;
176  friend class ProtoHd;
177  friend class IProtoFd;
178  friend class ProtoLight;
179 
180  uint8_t* m_buf;
181  int m_size;
182  int m_len;
183  int m_p;
184 };
185 
190 template <size_t S>
191 class Packet: public IPacket
192 {
193 public:
197  Packet(): IPacket(m_data, S) {}
198 
199 private:
200  char m_data[S];
201 };
202 
207 class PacketD: public IPacket
208 {
209 public:
214  PacketD(int size): IPacket((char *)(new uint8_t[size]), size) {}
215 
216  ~PacketD() { delete[] (uint8_t *)data(); }
217 
218 private:
219 };
220 
221 
222 } // Tiny namespace
223 
224 #endif
225 
size_t size() const
Definition: TinyPacket.h:155
+
Packet()
Definition: TinyPacket.h:197
Definition: TinyLightProtocol.h:39
char * getString()
Definition: TinyPacket.h:149
+
Definition: TinyProtocolHdlc.h:53
Definition: TinyProtocolHd.h:54
void clear()
Definition: TinyPacket.h:65
void put(uint8_t byte)
Definition: TinyPacket.h:72
@@ -81,14 +82,14 @@
char * data()
Definition: TinyPacket.h:167
uint8_t getByte()
Definition: TinyPacket.h:119
IPacket(char *buf, size_t size)
Definition: TinyPacket.h:55
-
Definition: TinyPacket.h:190
+
Definition: TinyPacket.h:191
char getChar()
Definition: TinyPacket.h:125
Definition: TinyPacket.h:46
Definition: TinyLightProtocol.h:51
uint8_t & operator[](size_t idx)
Definition: TinyPacket.h:172
-
Definition: TinyPacket.h:206
+
Definition: TinyPacket.h:207
Definition: TinyProtocolFd.h:53
-
PacketD(int size)
Definition: TinyPacket.h:213
+
PacketD(int size)
Definition: TinyPacket.h:214
void put(uint32_t data)
Definition: TinyPacket.h:92
void put(char chr)
Definition: TinyPacket.h:79
uint16_t getUint16()
Definition: TinyPacket.h:131
diff --git a/docs/TinyProtocolFd_8h.html b/docs/TinyProtocolFd_8h.html index 3d5c4f6f..7309dd8b 100644 --- a/docs/TinyProtocolFd_8h.html +++ b/docs/TinyProtocolFd_8h.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -81,11 +81,11 @@
- - - - - + + + + +
@@ -93,7 +93,7 @@
- +
diff --git a/docs/TinyProtocolFd_8h__dep__incl.map b/docs/TinyProtocolFd_8h__dep__incl.map index cbe71a87..aab7ddc4 100644 --- a/docs/TinyProtocolFd_8h__dep__incl.map +++ b/docs/TinyProtocolFd_8h__dep__incl.map @@ -1,3 +1,3 @@ - + diff --git a/docs/TinyProtocolFd_8h__dep__incl.png b/docs/TinyProtocolFd_8h__dep__incl.png index b4f6b9a6..0768631d 100644 Binary files a/docs/TinyProtocolFd_8h__dep__incl.png and b/docs/TinyProtocolFd_8h__dep__incl.png differ diff --git a/docs/TinyProtocolFd_8h__incl.map b/docs/TinyProtocolFd_8h__incl.map index f77273ec..b3f026be 100644 --- a/docs/TinyProtocolFd_8h__incl.map +++ b/docs/TinyProtocolFd_8h__incl.map @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/docs/TinyProtocolFd_8h__incl.png b/docs/TinyProtocolFd_8h__incl.png index b52bfb3d..abe6a136 100644 Binary files a/docs/TinyProtocolFd_8h__incl.png and b/docs/TinyProtocolFd_8h__incl.png differ diff --git a/docs/TinyProtocolFd_8h_source.html b/docs/TinyProtocolFd_8h_source.html index 64677495..3d9c837f 100644 --- a/docs/TinyProtocolFd_8h_source.html +++ b/docs/TinyProtocolFd_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -68,39 +68,39 @@
TinyProtocolFd.h
-Go to the documentation of this file.
1 /*
2  Copyright 2019 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
27 #pragma once
28 
29 #include "TinyPacket.h"
30 #include "proto/fd/tiny_fd.h"
31 
32 #ifdef ARDUINO
33 # include <HardwareSerial.h>
34 #else
35 # include <string.h>
36 #endif
37 
38 namespace Tiny {
39 
53 class IProtoFd
54 {
55 public:
56  friend class ProtoFdD;
62  IProtoFd(void * buffer,
63  int bufferSize)
64  : m_buffer( (uint8_t *)buffer )
65  , m_bufferSize( bufferSize )
66  {
67  }
68 
69  virtual ~IProtoFd() = default;
70 
79  void begin (write_block_cb_t writecb,
80  read_block_cb_t readcb);
81 
82 #ifdef ARDUINO
83 
88  inline void beginToSerial()
89  {
90  begin([](void *p, const void *b, int s)->int { return Serial.write((const uint8_t *)b, s); },
91  [](void *p, void *b, int s)->int { return Serial.readBytes((uint8_t *)b, s); });
92  }
93 
94 #ifdef HAVE_HWSERIAL1
95 
100  inline void beginToSerial1()
101  {
102  begin([](void *p, const void *b, int s)->int { return Serial1.write((const uint8_t *)b, s); },
103  [](void *p, void *b, int s)->int { return Serial1.readBytes((uint8_t *)b, s); });
104  }
105 #endif
106 
107 #ifdef HAVE_HWSERIAL2
108 
113  inline void beginToSerial2()
114  {
115  begin([](void *p, const void *b, int s)->int { return Serial2.write((const uint8_t *)b, s); },
116  [](void *p, void *b, int s)->int { return Serial2.readBytes((uint8_t *)b, s); });
117  }
118 #endif
119 
120 #ifdef HAVE_HWSERIAL3
121 
126  inline void beginToSerial3()
127  {
128  begin([](void *p, const void *b, int s)->int { return Serial3.write((const uint8_t *)b, s); },
129  [](void *p, void *b, int s)->int { return Serial3.readBytes((uint8_t *)b, s); });
130  }
131 #endif
132 
133 
134 #ifdef HAVE_SERIALUSB
135 
140  inline void beginToSerialUSB()
141  {
142  begin([](void *p, const void *b, int s)->int { return SerialUSB.write((const char *)b, s); },
143  [](void *p, void *b, int s)->int { return SerialUSB.readBytes((char *)b, s); });
144  }
145 #endif
146 
147 #endif
148 
152  void end();
153 
162  int write(char* buf, int size);
163 
172  int write(IPacket &pkt);
173 
182  int run_rx(uint16_t timeout = 0);
183 
188  int run_tx(uint16_t timeout = 0);
189 
195  void disableCrc();
196 
202  void enableCrc(hdlc_crc_t crc);
203 
211  bool enableCheckSum();
212 
220  bool enableCrc16();
221 
230  bool enableCrc32();
231 
236  void setReceiveCallback(void (*on_receive)(IPacket &pkt) = nullptr) { m_onReceive = on_receive; };
237 
242  void setSendCallback(void (*on_send)(IPacket &pkt) = nullptr) { m_onSend = on_send; };
243 
250  void setWindowSize(uint8_t window) { m_window = window; }
251 
256  void setSendTimeout(uint16_t timeout) { m_sendTimeout = timeout; }
257 
258 protected:
265  virtual void onReceive(uint8_t *pdata, int size)
266  {
267  IPacket pkt((char *)pdata, size);
268  pkt.m_len = size;
269  if ( m_onReceive ) m_onReceive( pkt );
270  }
271 
278  virtual void onSend(uint8_t *pdata, int size)
279  {
280  IPacket pkt((char *)pdata, size);
281  pkt.m_len = size;
282  if ( m_onSend ) m_onSend( pkt );
283  }
284 
285 private:
287  tiny_fd_handle_t m_handle = nullptr;
288 
290  uint8_t *m_buffer = nullptr;
291 
293 
295  int m_bufferSize = 0;
296 
298  uint16_t m_sendTimeout = 0;
299 
301  uint8_t m_window = 3;
302 
304  void (*m_onReceive)(IPacket &pkt) = nullptr;
305 
307  void (*m_onSend)(IPacket &pkt) = nullptr;
308 
310  static void onReceiveInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
311 
313  static void onSendInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
314 };
315 
319 template <int S>
320 class ProtoFd: public IProtoFd
321 {
322 public:
323  ProtoFd(): IProtoFd( m_data, S ) {}
324 private:
325  uint8_t m_data[S];
326 };
327 
333 class ProtoFdD: public IProtoFd
334 {
335 public:
340  ProtoFdD( int size ): IProtoFd( new uint8_t[size], size ) { }
341  ~ProtoFdD() { delete[] m_buffer; }
342 private:
343 };
344 
349 } // Tiny namespace
350 
int run_tx(uint16_t timeout=0)
-
hdlc_crc_t
Definition: tiny_hdlc.h:51
+Go to the documentation of this file.
1 /*
2  Copyright 2019-2020 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
27 #pragma once
28 
29 #include "TinyPacket.h"
30 #include "proto/fd/tiny_fd.h"
31 
32 #ifdef ARDUINO
33 # include <HardwareSerial.h>
34 #else
35 # include <string.h>
36 #endif
37 
38 namespace Tiny {
39 
53 class IProtoFd
54 {
55 public:
56  friend class ProtoFdD;
62  IProtoFd(void * buffer,
63  int bufferSize)
64  : m_buffer( (uint8_t *)buffer )
65  , m_bufferSize( bufferSize )
66  {
67  }
68 
69  virtual ~IProtoFd() = default;
70 
79  void begin (write_block_cb_t writecb,
80  read_block_cb_t readcb);
81 
82 
90  void begin();
91 
92 #ifdef ARDUINO
93 
98  inline void beginToSerial()
99  {
100  begin([](void *p, const void *b, int s)->int { return Serial.write((const uint8_t *)b, s); },
101  [](void *p, void *b, int s)->int { return Serial.readBytes((uint8_t *)b, s); });
102  }
103 
104 #ifdef HAVE_HWSERIAL1
105 
110  inline void beginToSerial1()
111  {
112  begin([](void *p, const void *b, int s)->int { return Serial1.write((const uint8_t *)b, s); },
113  [](void *p, void *b, int s)->int { return Serial1.readBytes((uint8_t *)b, s); });
114  }
115 #endif
116 
117 #ifdef HAVE_HWSERIAL2
118 
123  inline void beginToSerial2()
124  {
125  begin([](void *p, const void *b, int s)->int { return Serial2.write((const uint8_t *)b, s); },
126  [](void *p, void *b, int s)->int { return Serial2.readBytes((uint8_t *)b, s); });
127  }
128 #endif
129 
130 #ifdef HAVE_HWSERIAL3
131 
136  inline void beginToSerial3()
137  {
138  begin([](void *p, const void *b, int s)->int { return Serial3.write((const uint8_t *)b, s); },
139  [](void *p, void *b, int s)->int { return Serial3.readBytes((uint8_t *)b, s); });
140  }
141 #endif
142 
143 
144 #ifdef HAVE_SERIALUSB
145 
150  inline void beginToSerialUSB()
151  {
152  begin([](void *p, const void *b, int s)->int { return SerialUSB.write((const char *)b, s); },
153  [](void *p, void *b, int s)->int { return SerialUSB.readBytes((char *)b, s); });
154  }
155 #endif
156 
157 #endif
158 
162  void end();
163 
172  int write(char* buf, int size);
173 
182  int write(IPacket &pkt);
183 
192  int run_rx(uint16_t timeout = 0);
193 
200  int run_rx(const void *data, int len);
201 
206  int run_tx(uint16_t timeout = 0);
207 
215  int run_tx(void *data, int max_size);
216 
222  void disableCrc();
223 
229  void enableCrc(hdlc_crc_t crc);
230 
238  bool enableCheckSum();
239 
247  bool enableCrc16();
248 
257  bool enableCrc32();
258 
263  void setReceiveCallback(void (*on_receive)(IPacket &pkt) = nullptr) { m_onReceive = on_receive; };
264 
269  void setSendCallback(void (*on_send)(IPacket &pkt) = nullptr) { m_onSend = on_send; };
270 
277  void setWindowSize(uint8_t window) { m_window = window; }
278 
283  void setSendTimeout(uint16_t timeout) { m_sendTimeout = timeout; }
284 
285 protected:
292  virtual void onReceive(uint8_t *pdata, int size)
293  {
294  IPacket pkt((char *)pdata, size);
295  pkt.m_len = size;
296  if ( m_onReceive ) m_onReceive( pkt );
297  }
298 
305  virtual void onSend(uint8_t *pdata, int size)
306  {
307  IPacket pkt((char *)pdata, size);
308  pkt.m_len = size;
309  if ( m_onSend ) m_onSend( pkt );
310  }
311 
312 private:
314  tiny_fd_handle_t m_handle = nullptr;
315 
317  uint8_t *m_buffer = nullptr;
318 
320 
322  int m_bufferSize = 0;
323 
325  uint16_t m_sendTimeout = 0;
326 
328  uint8_t m_window = 3;
329 
331  void (*m_onReceive)(IPacket &pkt) = nullptr;
332 
334  void (*m_onSend)(IPacket &pkt) = nullptr;
335 
337  static void onReceiveInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
338 
340  static void onSendInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
341 };
342 
346 template <int S>
347 class ProtoFd: public IProtoFd
348 {
349 public:
350  ProtoFd(): IProtoFd( m_data, S ) {}
351 private:
352  uint8_t m_data[S];
353 };
354 
360 class ProtoFdD: public IProtoFd
361 {
362 public:
367  ProtoFdD( int size ): IProtoFd( new uint8_t[size], size ) { }
368  ~ProtoFdD() { delete[] m_buffer; }
369 private:
370 };
371 
376 } // Tiny namespace
377 
int run_tx(uint16_t timeout=0)
+
hdlc_crc_t
Definition: tiny_hdlc.h:54
Tiny protocol Arduino API.
-
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:53
-
virtual void onSend(uint8_t *pdata, int size)
Definition: TinyProtocolFd.h:278
-
Definition: TinyProtocolFd.h:320
+
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:56
+
virtual void onSend(uint8_t *pdata, int size)
Definition: TinyProtocolFd.h:305
+
Definition: TinyProtocolFd.h:347
Definition: TinyLightProtocol.h:39
bool enableCheckSum()
void enableCrc(hdlc_crc_t crc)
struct tiny_fd_data_t * tiny_fd_handle_t
Definition: tiny_fd.h:50
-
void setReceiveCallback(void(*on_receive)(IPacket &pkt)=nullptr)
Definition: TinyProtocolFd.h:236
-
virtual void onReceive(uint8_t *pdata, int size)
Definition: TinyProtocolFd.h:265
+
void setReceiveCallback(void(*on_receive)(IPacket &pkt)=nullptr)
Definition: TinyProtocolFd.h:263
+
virtual void onReceive(uint8_t *pdata, int size)
Definition: TinyProtocolFd.h:292
bool enableCrc32()
-
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:139
+
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:141
IProtoFd(void *buffer, int bufferSize)
Definition: TinyProtocolFd.h:62
-
void beginToSerial3()
Definition: TinyProtocolFd.h:126
-
void setWindowSize(uint8_t window)
Definition: TinyProtocolFd.h:250
+
void beginToSerial3()
Definition: TinyProtocolFd.h:136
+
void setWindowSize(uint8_t window)
Definition: TinyProtocolFd.h:277
bool enableCrc16()
Definition: TinyPacket.h:46
-
void beginToSerial2()
Definition: TinyProtocolFd.h:113
+
void beginToSerial2()
Definition: TinyProtocolFd.h:123
Definition: TinyProtocolFd.h:53
int run_rx(uint16_t timeout=0)
-
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:128
-
void beginToSerial()
Definition: TinyProtocolFd.h:88
-
Definition: TinyProtocolFd.h:333
+
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:130
+
void beginToSerial()
Definition: TinyProtocolFd.h:98
+
Definition: TinyProtocolFd.h:360
Tiny Protocol Full Duplex API.
-
void beginToSerial1()
Definition: TinyProtocolFd.h:100
-
ProtoFdD(int size)
Definition: TinyProtocolFd.h:340
-
void setSendCallback(void(*on_send)(IPacket &pkt)=nullptr)
Definition: TinyProtocolFd.h:242
-
void setSendTimeout(uint16_t timeout)
Definition: TinyProtocolFd.h:256
-
void begin(write_block_cb_t writecb, read_block_cb_t readcb)
+
void beginToSerial1()
Definition: TinyProtocolFd.h:110
+
ProtoFdD(int size)
Definition: TinyProtocolFd.h:367
+
void setSendCallback(void(*on_send)(IPacket &pkt)=nullptr)
Definition: TinyProtocolFd.h:269
+ +
void setSendTimeout(uint16_t timeout)
Definition: TinyProtocolFd.h:283
int write(char *buf, int size)
diff --git a/docs/TinyProtocolHd_8h.html b/docs/TinyProtocolHd_8h.html index 9fce57d4..a4de1528 100644 --- a/docs/TinyProtocolHd_8h.html +++ b/docs/TinyProtocolHd_8h.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -81,11 +81,11 @@
- - - - - + + + + +
@@ -93,7 +93,7 @@
- +
diff --git a/docs/TinyProtocolHd_8h__dep__incl.map b/docs/TinyProtocolHd_8h__dep__incl.map index d5380356..affee479 100644 --- a/docs/TinyProtocolHd_8h__dep__incl.map +++ b/docs/TinyProtocolHd_8h__dep__incl.map @@ -1,3 +1,3 @@ - + diff --git a/docs/TinyProtocolHd_8h__dep__incl.png b/docs/TinyProtocolHd_8h__dep__incl.png index d77b6848..afde790c 100644 Binary files a/docs/TinyProtocolHd_8h__dep__incl.png and b/docs/TinyProtocolHd_8h__dep__incl.png differ diff --git a/docs/TinyProtocolHd_8h__incl.map b/docs/TinyProtocolHd_8h__incl.map index 06af3ebe..f508acbe 100644 --- a/docs/TinyProtocolHd_8h__incl.map +++ b/docs/TinyProtocolHd_8h__incl.map @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/docs/TinyProtocolHd_8h__incl.png b/docs/TinyProtocolHd_8h__incl.png index 2dfc127f..82fd8230 100644 Binary files a/docs/TinyProtocolHd_8h__incl.png and b/docs/TinyProtocolHd_8h__incl.png differ diff --git a/docs/TinyProtocolHd_8h_source.html b/docs/TinyProtocolHd_8h_source.html index 92e3cd20..facd5f33 100644 --- a/docs/TinyProtocolHd_8h_source.html +++ b/docs/TinyProtocolHd_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -68,9 +68,9 @@
TinyProtocolHd.h
-Go to the documentation of this file.
1 /*
2  Copyright 2017 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #ifndef _TINY_PROTOCOL_H_
29 #define _TINY_PROTOCOL_H_
30 
31 #include "TinyPacket.h"
33 
34 #ifdef ARDUINO
35 # include <HardwareSerial.h>
36 #else
37 # include <string.h>
38 #endif
39 
40 namespace Tiny {
41 
54 class ProtoHd
55 {
56 private:
58  STinyHdData m_data;
59 
60 public:
67  inline ProtoHd(void * buffer,
68  int bufferSize,
69  void (*onReceive)(uint8_t *buf, int len))
70  :m_data{}
71  {
72  m_buffer = buffer;
73  m_bufferSize = bufferSize;
74  m_onReceive = onReceive;
75  }
76 
85  void begin (write_block_cb_t writecb,
86  read_block_cb_t readcb);
87 
88 #ifdef ARDUINO
89 
94  inline void beginToSerial()
95  {
96  begin([](void *p, const void *b, int s)->int { return Serial.write((const uint8_t *)b, s); },
97  [](void *p, void *b, int s)->int { return Serial.readBytes((uint8_t *)b, s); });
98  }
99 
100 #ifdef HAVE_HWSERIAL1
101 
106  inline void beginToSerial1()
107  {
108  begin([](void *p, const void *b, int s)->int { return Serial1.write((const uint8_t *)b, s); },
109  [](void *p, void *b, int s)->int { return Serial1.readBytes((uint8_t *)b, s); });
110  }
111 #endif
112 
113 #ifdef HAVE_HWSERIAL2
114 
119  inline void beginToSerial2()
120  {
121  begin([](void *p, const void *b, int s)->int { return Serial2.write((const uint8_t *)b, s); },
122  [](void *p, void *b, int s)->int { return Serial2.readBytes((uint8_t *)b, s); });
123  }
124 #endif
125 
126 #ifdef HAVE_HWSERIAL3
127 
132  inline void beginToSerial3()
133  {
134  begin([](void *p, const void *b, int s)->int { return Serial3.write((const uint8_t *)b, s); },
135  [](void *p, void *b, int s)->int { return Serial3.readBytes((uint8_t *)b, s); });
136  }
137 #endif
138 
139 
140 #ifdef HAVE_SERIALUSB
141 
146  inline void beginToSerialUSB()
147  {
148  begin([](void *p, const void *b, int s)->int { return SerialUSB.write((const char *)b, s); },
149  [](void *p, void *b, int s)->int { return SerialUSB.readBytes((char *)b, s); });
150  }
151 #endif
152 
153 #endif
154 
158  void end ();
159 
168  int write (char* buf, int size);
169 
178  int write (IPacket &pkt);
179 
188  int run ();
189 
195  void disableCrc ();
196 
204  bool enableCheckSum ();
205 
213  bool enableCrc16 ();
214 
223  bool enableCrc32 ();
224 
225 private:
227  void *m_buffer;
230  int m_bufferSize;
232  void (*m_onReceive)(uint8_t *buf, int len);
234  static void onReceiveInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
235 
236 };
237 
242 } // Tiny namespace
243 
244 #endif
245 
hdlc_crc_t
Definition: tiny_hdlc.h:51
+Go to the documentation of this file.
1 /*
2  Copyright 2017 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #ifndef _TINY_PROTOCOL_H_
29 #define _TINY_PROTOCOL_H_
30 
31 #include "TinyPacket.h"
33 
34 #ifdef ARDUINO
35 # include <HardwareSerial.h>
36 #else
37 # include <string.h>
38 #endif
39 
40 namespace Tiny {
41 
54 class ProtoHd
55 {
56 private:
58  STinyHdData m_data;
59 
60 public:
67  inline ProtoHd(void * buffer,
68  int bufferSize,
69  void (*onReceive)(uint8_t *buf, int len))
70  :m_data{}
71  {
72  m_buffer = buffer;
73  m_bufferSize = bufferSize;
74  m_onReceive = onReceive;
75  }
76 
85  void begin (write_block_cb_t writecb,
86  read_block_cb_t readcb);
87 
88 #ifdef ARDUINO
89 
94  inline void beginToSerial()
95  {
96  begin([](void *p, const void *b, int s)->int { return Serial.write((const uint8_t *)b, s); },
97  [](void *p, void *b, int s)->int { return Serial.readBytes((uint8_t *)b, s); });
98  }
99 
100 #ifdef HAVE_HWSERIAL1
101 
106  inline void beginToSerial1()
107  {
108  begin([](void *p, const void *b, int s)->int { return Serial1.write((const uint8_t *)b, s); },
109  [](void *p, void *b, int s)->int { return Serial1.readBytes((uint8_t *)b, s); });
110  }
111 #endif
112 
113 #ifdef HAVE_HWSERIAL2
114 
119  inline void beginToSerial2()
120  {
121  begin([](void *p, const void *b, int s)->int { return Serial2.write((const uint8_t *)b, s); },
122  [](void *p, void *b, int s)->int { return Serial2.readBytes((uint8_t *)b, s); });
123  }
124 #endif
125 
126 #ifdef HAVE_HWSERIAL3
127 
132  inline void beginToSerial3()
133  {
134  begin([](void *p, const void *b, int s)->int { return Serial3.write((const uint8_t *)b, s); },
135  [](void *p, void *b, int s)->int { return Serial3.readBytes((uint8_t *)b, s); });
136  }
137 #endif
138 
139 
140 #ifdef HAVE_SERIALUSB
141 
146  inline void beginToSerialUSB()
147  {
148  begin([](void *p, const void *b, int s)->int { return SerialUSB.write((const char *)b, s); },
149  [](void *p, void *b, int s)->int { return SerialUSB.readBytes((char *)b, s); });
150  }
151 #endif
152 
153 #endif
154 
158  void end ();
159 
168  int write (char* buf, int size);
169 
178  int write (IPacket &pkt);
179 
188  int run ();
189 
195  void disableCrc ();
196 
204  bool enableCheckSum ();
205 
213  bool enableCrc16 ();
214 
223  bool enableCrc32 ();
224 
225 private:
227  void *m_buffer;
230  int m_bufferSize;
232  void (*m_onReceive)(uint8_t *buf, int len);
234  static void onReceiveInternal(void *handle, uint16_t uid, uint8_t *pdata, int size);
235 
236 };
237 
242 } // Tiny namespace
243 
244 #endif
245 
hdlc_crc_t
Definition: tiny_hdlc.h:54
Tiny protocol Arduino API.
-
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:53
+
If default is specified HDLC will auto select CRC option.
Definition: tiny_hdlc.h:56
Definition: TinyLightProtocol.h:39
void begin(write_block_cb_t writecb, read_block_cb_t readcb)
void beginToSerial()
Definition: TinyProtocolHd.h:94
@@ -78,7 +78,7 @@
ProtoHd(void *buffer, int bufferSize, void(*onReceive)(uint8_t *buf, int len))
Definition: TinyProtocolHd.h:67
void beginToSerial1()
Definition: TinyProtocolHd.h:106
int write(char *buf, int size)
-
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:139
+
int(* read_block_cb_t)(void *pdata, void *buffer, int size)
Definition: tiny_types.h:141
void beginToSerial2()
Definition: TinyProtocolHd.h:119
void beginToSerial3()
Definition: TinyProtocolHd.h:132
bool enableCrc32()
@@ -90,7 +90,7 @@
void disableCrc()
bool enableCheckSum()
bool enableCrc16()
-
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:128
+
int(* write_block_cb_t)(void *pdata, const void *buffer, int size)
Definition: tiny_types.h:130
-Go to the documentation of this file.
1 /*
2  Copyright 2016-2019 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #pragma once
29 
30 #include "TinyPacket.h"
31 #include "TinyLightProtocol.h"
32 #include "TinyProtocolHd.h"
33 #include "TinyProtocolFd.h"
34 
Tiny protocol Arduino API.
+Go to the documentation of this file.
1 /*
2  Copyright 2016-2020 (C) Alexey Dynda
3 
4  This file is part of Tiny Protocol Library.
5 
6  Protocol Library is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Protocol Library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with Protocol Library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
28 #pragma once
29 
30 #include "TinyPacket.h"
31 #include "TinyLightProtocol.h"
32 #include "TinyProtocolHdlc.h"
33 #include "TinyProtocolHd.h"
34 #include "TinyProtocolFd.h"
35 
Tiny protocol Arduino API.
Tiny protocol Arduino API.
+
Tiny protocol Arduino API.
Tiny protocol Arduino API.
Tiny light protocol Arduino API.
diff --git a/docs/annotated.html b/docs/annotated.html index f032712f..ffe3fc3d 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -74,15 +74,16 @@  CProtoFd  CProtoFdD  CProtoHd - CProtoLight - C_hdlc_handle_t - Clist_element_Structure defines base type for the lists - CSTinyHdData_ - CSTinyHdInit_ - CSTinyLightData - CSTinyStats - Ctiny_fd_init_t_ - Ctiny_request_Defines type for tiny request list item + CProtoHdlc + CProtoLight + C_hdlc_handle_t + Clist_element_Structure defines base type for the lists + CSTinyHdData_ + CSTinyHdInit_ + CSTinyLightData + CSTinyStats + Ctiny_fd_init_t_ + Ctiny_request_Defines type for tiny request list item
diff --git a/docs/arduino.html b/docs/arduino.html index e9b72c46..8d2c3c3d 100644 --- a/docs/arduino.html +++ b/docs/arduino.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
diff --git a/docs/arduino_8dox.html b/docs/arduino_8dox.html index f4fcb979..522c80db 100644 --- a/docs/arduino_8dox.html +++ b/docs/arduino_8dox.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
diff --git a/docs/arduino__hal_8h_source.html b/docs/arduino__hal_8h_source.html index d1cfeac0..39df560c 100644 --- a/docs/arduino__hal_8h_source.html +++ b/docs/arduino__hal_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
diff --git a/docs/avr__hal_8h_source.html b/docs/avr__hal_8h_source.html index 341339ce..14f4a5a6 100644 --- a/docs/avr__hal_8h_source.html +++ b/docs/avr__hal_8h_source.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
diff --git a/docs/classTiny_1_1IPacket-members.html b/docs/classTiny_1_1IPacket-members.html index ce3172ce..18adcedb 100644 --- a/docs/classTiny_1_1IPacket-members.html +++ b/docs/classTiny_1_1IPacket-members.html @@ -22,7 +22,7 @@
Tiny protocol -  0.9.3 +  0.11.0
Tiny communication protocol for microcontrollers
@@ -84,16 +84,17 @@ maxSize() constTiny::IPacketinline operator[](size_t idx)Tiny::IPacketinline ProtoHd (defined in Tiny::IPacket)Tiny::IPacketfriend - ProtoLight (defined in Tiny::IPacket)Tiny::IPacketfriend - put(uint8_t byte)Tiny::IPacketinline - put(char chr)Tiny::IPacketinline - put(uint16_t data)Tiny::IPacketinline - put(uint32_t data)Tiny::IPacketinline - put(int16_t data)Tiny::IPacketinline - put(const char *str)Tiny::IPacketinline - put(const IPacket &pkt)Tiny::IPacketinline - size() constTiny::IPacketinline - ~IPacket()=defaultTiny::IPacketvirtual + ProtoHdlc (defined in Tiny::IPacket)Tiny::IPacketfriend + ProtoLight (defined in Tiny::IPacket)Tiny::IPacketfriend + put(uint8_t byte)Tiny::IPacketinline + put(char chr)Tiny::IPacketinline + put(uint16_t data)Tiny::IPacketinline + put(uint32_t data)Tiny::IPacketinline + put(int16_t data)Tiny::IPacketinline + put(const char *str)Tiny::IPacketinline + put(const IPacket &pkt)Tiny::IPacketinline + size() constTiny::IPacketinline + ~IPacket()=defaultTiny::IPacketvirtual