Skip to content

4.0.0-alpha.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@ssilverman 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 and Sender::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() and Receiver::errorStats() functions with associated Receiver::PacketStats and Receiver::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 and Receiver::PacketStats, respectively: Receiver::errorStats() and Receiver::packetStats().
  • Receiver::readPacket has an additional but optional parameter that provides a place to store the packet statistics, a PacketStats*, allowing atomic retrieval with the packet data.

Removed

  • Receiver::packetTimeoutCount(), Receiver::framingErrorCount(), and Receiver::shortPacketCount() were replaced by Receiver::errorStats() and its associated Receiver::ErrorStats class.