File tree 5 files changed +30
-1
lines changed
avr/libraries/IntegerEasyTransfer
5 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 47
47
* 1.1.0
48
48
* Added new classes to support two way communications and extended
49
49
* messages and software reset.
50
+ * 1.1.1
51
+ * Added overloaded write method to TwoWayIntegerEasyTransfer.
50
52
*
51
53
*
52
54
* Limits of the Library
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ sendData KEYWORD2
24
24
receiveData KEYWORD2
25
25
writeByte KEYWORD2
26
26
writeInt KEYWORD2
27
+ write KEYWORD2
27
28
readByte KEYWORD2
28
29
readInt KEYWORD2
29
30
sendSystemReset KEYWORD2
Original file line number Diff line number Diff line change 1
1
name =IntegerEasyTransfer
2
- version =1.1.0
2
+ version =1.1.1
3
3
author =Bill Porter <bill@billporter.info>, Julian Sanin <sanin89julian@gmail.com>
4
4
maintainer =Julian Sanin <sanin89julian@gmail.com>
5
5
sentence =A library to interface Arduino boards.
Original file line number Diff line number Diff line change @@ -45,10 +45,18 @@ void CTwoWayIntegerEasyTransfer::writeByte(uint8_t data) {
45
45
_response.writeByte (data);
46
46
}
47
47
48
+ void CTwoWayIntegerEasyTransfer::write (uint8_t data) {
49
+ writeByte (data);
50
+ }
51
+
48
52
void CTwoWayIntegerEasyTransfer::writeInt (int16_t data) {
49
53
_response.writeInt (data);
50
54
}
51
55
56
+ void CTwoWayIntegerEasyTransfer::write (int16_t data) {
57
+ writeInt (data);
58
+ }
59
+
52
60
bool CTwoWayIntegerEasyTransfer::hasReceivedData (void ) {
53
61
return _request.receiveData ();
54
62
}
Original file line number Diff line number Diff line change @@ -81,6 +81,15 @@ class CTwoWayIntegerEasyTransfer {
81
81
// / </param>
82
82
void writeByte (uint8_t data);
83
83
84
+ // / <summary>
85
+ // / Adds a byte to the protocol buffer. See also:
86
+ // / <seealso cref="sendData" />
87
+ // / </summary>
88
+ // / <param name="data">
89
+ // / The byte to be inserted to the buffer.
90
+ // / </param>
91
+ void write (uint8_t data);
92
+
84
93
// / <summary>
85
94
// / Adds a integer to the protocol buffer. See also:
86
95
// / <seealso cref="sendData" />
@@ -90,6 +99,15 @@ class CTwoWayIntegerEasyTransfer {
90
99
// / </param>
91
100
void writeInt (int16_t data);
92
101
102
+ // / <summary>
103
+ // / Adds a integer to the protocol buffer. See also:
104
+ // / <seealso cref="sendData" />
105
+ // / </summary>
106
+ // / <param name="data">
107
+ // / The integer to be inserted to the buffer.
108
+ // / </param>
109
+ void write (int16_t data);
110
+
93
111
// / <summary>Check wether messages have been received.</summary>
94
112
// / <returns>
95
113
// / True if a messages has been recieved otherwise false.
You can’t perform that action at this time.
0 commit comments