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

Method getSize

libraries/FRAM_I2C/FRAM.cpp:235–242  ·  view source on GitHub ↗

NOTE: returns the size in kiloBYTE

Source from the content-addressed store, hash-verified

233
234// NOTE: returns the size in kiloBYTE
235uint16_t FRAM::getSize()
236{
237 uint16_t density = _getMetaData(2);
238 uint16_t size = 0;
239 if (density > 0) size = (1UL << density);
240 _sizeBytes = size * 1024UL;
241 return size;
242}
243
244
245uint32_t FRAM::getSizeBytes()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36