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

Method save

libraries/FRAM_I2C/FRAM_RINGBUFFER.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127void FRAM_RINGBUFFER::save()
128{
129 uint32_t pos = _start - 20;
130 if (not _saved)
131 {
132 uint32_t checksum = _size + _front + _tail + _count;
133 _fram->write32(pos + 0, _size );
134 _fram->write32(pos + 4, _front);
135 _fram->write32(pos + 8, _tail );
136 _fram->write32(pos + 12, _count);
137 _fram->write32(pos + 16, checksum);
138 _saved = true;
139 }
140}
141
142
143bool FRAM_RINGBUFFER::load()

Callers

nothing calls this directly

Calls 1

write32Method · 0.80

Tested by

no test coverage detected