153#define MMHAL_DEBUG_PIN(_pin_num) (1ul << (_pin_num))
156#define MMHAL_ALL_DEBUG_PINS (UINT32_MAX)
bool mmhal_get_hardware_version(char *version_buffer, size_t version_buffer_length)
Reads information that can be used to identify the hardware platform, such as hardware ID and version...
void(* mmhal_button_state_cb_t)(enum mmhal_button_id button_id, enum mmhal_button_state button_state)
Button state callback function prototype.
mmhal_led_id
Enumeration for different LEDs on the board.
mmhal_button_state
Enumeration for button states.
bool mmhal_set_button_callback(enum mmhal_button_id button_id, mmhal_button_state_cb_t button_state_cb)
Registers a callback handler for button state changes.
void mmhal_set_time(time_t epoch)
Sets the RTC to the specified time in UTC.
mmhal_button_id
Enumeration for buttons on the board.
mmhal_button_state_cb_t mmhal_get_button_callback(enum mmhal_button_id button_id)
Returns the registered callback handler for button state changes.
void mmhal_set_error_led(bool state)
Set the error LED to the requested state.
void mmhal_set_led(uint8_t led, uint8_t level)
Set the specified LED to the requested level.
time_t mmhal_get_time(void)
Returns the time of day as set in the RTC.
enum mmhal_button_state mmhal_get_button(enum mmhal_button_id button_id)
Reads the state of the specified button.
void mmhal_set_debug_pins(uint32_t mask, uint32_t values)
Set the value one or more debug pins.