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

Method sleep

libraries/FRAM_I2C/FRAM.cpp:275–282  ·  view source on GitHub ↗

EXPERIMENTAL - to be confirmed page 12 datasheet command = S 0xF8 A address A S 86 A P (A = Ack from slave )

Source from the content-addressed store, hash-verified

273// page 12 datasheet
274// command = S 0xF8 A address A S 86 A P (A = Ack from slave )
275void FRAM::sleep()
276{
277 _wire->beginTransmission(FRAM_SLAVE_ID_); // S 0xF8
278 _wire->write(_address << 1); // address << 1
279 _wire->endTransmission(false); // no stoP
280 _wire->beginTransmission(FRAM_SLEEP_CMD >> 1); // S 0x86
281 _wire->endTransmission(true); // stoP
282}
283
284
285// page 12 datasheet trec <= 400us

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected