Function M41T62Regs::sqwBits

Function Documentation

constexpr std::uint8_t M41T62Regs::sqwBits(unsigned frequency)

Generate bits for setting sqw generator to correct frequency.

Parameters

frequency – (must be a power of 2 upto 32768 (2 to the power of 15))

Returns

constexpr std::uint8_t bits for configuration