Skip to content

Commit 51a1516

Browse files
committedMar 13, 2017
Added overloaded write method to TwoWayIntegerEasyTransfer class
1 parent 4d327e3 commit 51a1516

File tree

5 files changed

+30
-1
lines changed

5 files changed

+30
-1
lines changed
 

‎avr/libraries/IntegerEasyTransfer/README.txt

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
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

‎avr/libraries/IntegerEasyTransfer/keywords.txt

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ sendData KEYWORD2
2424
receiveData KEYWORD2
2525
writeByte KEYWORD2
2626
writeInt KEYWORD2
27+
write KEYWORD2
2728
readByte KEYWORD2
2829
readInt KEYWORD2
2930
sendSystemReset KEYWORD2

‎avr/libraries/IntegerEasyTransfer/library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=IntegerEasyTransfer
2-
version=1.1.0
2+
version=1.1.1
33
author=Bill Porter <bill@billporter.info>, Julian Sanin <sanin89julian@gmail.com>
44
maintainer=Julian Sanin <sanin89julian@gmail.com>
55
sentence=A library to interface Arduino boards.

‎avr/libraries/IntegerEasyTransfer/src/TwoWayIntegerEasyTransfer.cpp

+8
Original file line numberDiff line numberDiff 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+
4852
void CTwoWayIntegerEasyTransfer::writeInt(int16_t data) {
4953
_response.writeInt(data);
5054
}
5155

56+
void CTwoWayIntegerEasyTransfer::write(int16_t data) {
57+
writeInt(data);
58+
}
59+
5260
bool CTwoWayIntegerEasyTransfer::hasReceivedData(void) {
5361
return _request.receiveData();
5462
}

‎avr/libraries/IntegerEasyTransfer/src/TwoWayIntegerEasyTransfer.h

+18
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)