User Tools

Site Tools


en-us_commands:reference:irtcalarmenabled

This is an old revision of the document!


IrtcAlarmEnabled()

IrtcAlarmEnabled() checks whether the specified alarm is enabled.

IrtcAlarmEnabled command operation flow

bool IrtcAlarmEnabled(uint8_t alarm, bool& enabled)

Commands

Command Arguments Return Value Operation
IrtcAlarmEnabled(alarm, enabled) uint8_t alarm
bool& enabled
bool Checks whether the specified alarm is enabled.

Example

bool IrtcAlarmEnable(uint8_t alarm, bool enable = true);
bool IrtcAlarmEnabled(uint8_t alarm, bool& enabled);
bool IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = true);

Precautions

Run each device's corresponding Begin command first. Check I²C addresses and pin sharing; if the bool return value is false, inspect wiring and power.

← Built-in Command List

en-us_commands/reference/irtcalarmenabled.1788785567.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki