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

Method read

libraries/FRAM_I2C/FRAM.cpp:188–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188void FRAM::read(uint16_t memaddr, uint8_t * obj, uint16_t size)
189{
190 const uint8_t blocksize = 24;
191 uint8_t * p = obj;
192 while (size >= blocksize)
193 {
194 _readBlock(memaddr, p, blocksize);
195 memaddr += blocksize;
196 p += blocksize;
197 size -= blocksize;
198 }
199 // remainder
200 if (size > 0)
201 {
202 _readBlock(memaddr, p, size);
203 }
204}
205
206
207bool FRAM::setWriteProtect(bool b)

Callers 2

_getMetaDataMethod · 0.45
_readBlockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected