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

Method setOutputMode

libraries/AS5600/AS5600.cpp:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool AS5600::setOutputMode(uint8_t outputMode)
232{
233 if (outputMode > 2) return false;
234 uint8_t value = readReg(AS5600_CONF + 1);
235 value &= ~AS5600_CONF_OUTPUT_MODE;
236 value |= (outputMode << 4);
237 writeReg(AS5600_CONF + 1, value);
238 return true;
239}
240
241uint8_t AS5600::getOutputMode()
242{

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64