MCPcopy Create free account
hub / github.com/MCUdude/MiniCore / available

Method available

avr/libraries/SoftwareSerial/src/SoftwareSerial.cpp:467–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467int SoftwareSerial::available()
468{
469 if (!isListening())
470 return 0;
471
472 return ((uint16_t)(_receive_buffer_tail + _SS_MAX_RX_BUFF - _receive_buffer_head)) % _SS_MAX_RX_BUFF;
473}
474
475size_t SoftwareSerial::write(uint8_t b)
476{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected