File tree Expand file tree Collapse file tree 5 files changed +30
-1
lines changed
avr/libraries/IntegerEasyTransfer Expand file tree Collapse file tree 5 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 4747* 1.1.0
4848* Added new classes to support two way communications and extended
4949* messages and software reset.
50+ * 1.1.1
51+ * Added overloaded write method to TwoWayIntegerEasyTransfer.
5052*
5153*
5254* Limits of the Library
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ sendData KEYWORD2
2424receiveData KEYWORD2
2525writeByte KEYWORD2
2626writeInt KEYWORD2
27+ write KEYWORD2
2728readByte KEYWORD2
2829readInt KEYWORD2
2930sendSystemReset KEYWORD2
Original file line number Diff line number Diff line change 11name =IntegerEasyTransfer
2- version =1.1.0
2+ version =1.1.1
33author =Bill Porter <bill@billporter.info>, Julian Sanin <sanin89julian@gmail.com>
44maintainer =Julian Sanin <sanin89julian@gmail.com>
55sentence =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) {
4545 _response.writeByte (data);
4646}
4747
48+ void CTwoWayIntegerEasyTransfer::write (uint8_t data) {
49+ writeByte (data);
50+ }
51+
4852void CTwoWayIntegerEasyTransfer::writeInt (int16_t data) {
4953 _response.writeInt (data);
5054}
5155
56+ void CTwoWayIntegerEasyTransfer::write (int16_t data) {
57+ writeInt (data);
58+ }
59+
5260bool CTwoWayIntegerEasyTransfer::hasReceivedData (void ) {
5361 return _request.receiveData ();
5462}
Original file line number Diff line number Diff line change @@ -81,6 +81,15 @@ class CTwoWayIntegerEasyTransfer {
8181 // / </param>
8282 void writeByte (uint8_t data);
8383
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+
8493 // / <summary>
8594 // / Adds a integer to the protocol buffer. See also:
8695 // / <seealso cref="sendData" />
@@ -90,6 +99,15 @@ class CTwoWayIntegerEasyTransfer {
9099 // / </param>
91100 void writeInt (int16_t data);
92101
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+
93111 // / <summary>Check wether messages have been received.</summary>
94112 // / <returns>
95113 // / True if a messages has been recieved otherwise false.
You can’t perform that action at this time.
0 commit comments