4.0.0-alpha.3
Pre-release
Pre-release
ssilverman
released this
03 Dec 09:12
·
359 commits
to master
since this release
Added
- Added a way to set and retrieve 16-bit values using new
Receiver::get16Bit
andSender::set16Bit
functions. - Added the ability to enable and disable the transmitter in the receiver via a new
Receiver::setTXEnabled
function. This is useful when it is known that the receiver will be receive-only and it is not desired to drive the TX line. - New
Receiver::packetStats()
andReceiver::errorStats()
functions with associatedReceiver::PacketStats
andReceiver::ErrorStats
classes for examining the latest packet statistics and error counts.
Changed
- In the sender, changed how the baud rate is set when switching between the BREAK baud rate and slots baud rate. The UART/LPUART parameters are set directly instead of calling
begin
on the serial port object. This avoids setting values where we don't need to and has the effect of shaving some microseconds off the Mark after BREAK (MAB) so that it is closer to the desired duration. Receiver::begin()
now resets all the packet statistics.- Error counts and packet statistics functions have been replaced with functions to retrieve
Receiver::ErrorStats
andReceiver::PacketStats
, respectively:Receiver::errorStats()
andReceiver::packetStats()
. Receiver::readPacket
has an additional but optional parameter that provides a place to store the packet statistics, aPacketStats*
, allowing atomic retrieval with the packet data.
Removed
Receiver::packetTimeoutCount()
,Receiver::framingErrorCount()
, andReceiver::shortPacketCount()
were replaced byReceiver::errorStats()
and its associatedReceiver::ErrorStats
class.