MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / write

Method write

libraries/FRAM_I2C/FRAM_RINGBUFFER.cpp:85–94  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////// BYTE INTERFACE

Source from the content-addressed store, hash-verified

83// BYTE INTERFACE
84//
85int FRAM_RINGBUFFER::write(uint8_t value)
86{
87 if (full()) return FRAM_RB_ERR_BUF_FULL;
88 _fram->write8(_front, value);
89 _saved = false;
90 _front++;
91 _count++;
92 if (_front >= _start + _size) _front = _start;
93 return 1;
94}
95
96
97int FRAM_RINGBUFFER::read()

Callers

nothing calls this directly

Calls 1

write8Method · 0.45

Tested by

no test coverage detected