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

Method setFastFilter

libraries/AS5600/AS5600.cpp:276–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276bool AS5600::setFastFilter(uint8_t mask)
277{
278 if (mask > 7) return false;
279 uint8_t value = readReg(AS5600_CONF);
280 value &= ~AS5600_CONF_FAST_FILTER;
281 value |= (mask << 2);
282 writeReg(AS5600_CONF, value);
283 return true;
284}
285
286uint8_t AS5600::getFastFilter()
287{

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64