Morse Micro IoT SDK  2.13.1
relay_mode_led.h File Reference

Detailed Description

Optional LED status indication for the Relay Mode Example Application.

Definition in file relay_mode_led.h.

#include <stdint.h>
Include dependency graph for relay_mode_led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void relay_led_init (void)
 Initializes the LED status module and starts its background task. More...
 
void relay_led_set_connecting (void)
 Indicates that the app is attempting to connect to Wi-Fi. More...
 
void relay_led_set_connected (void)
 Indicates that the app has connected to Wi-Fi. More...
 
void relay_led_set_failed (void)
 Indicates that the app has failed to connect. More...
 
void relay_led_set_depth (uint8_t depth)
 Indicates the current relay depth by pulsing the green LED depth times. More...
 

Function Documentation

◆ relay_led_init()

void relay_led_init ( void  )

Initializes the LED status module and starts its background task.

Definition at line 110 of file relay_mode_led.c.

◆ relay_led_set_connected()

void relay_led_set_connected ( void  )

Indicates that the app has connected to Wi-Fi.

Definition at line 122 of file relay_mode_led.c.

◆ relay_led_set_connecting()

void relay_led_set_connecting ( void  )

Indicates that the app is attempting to connect to Wi-Fi.

Definition at line 117 of file relay_mode_led.c.

◆ relay_led_set_depth()

void relay_led_set_depth ( uint8_t  depth)

Indicates the current relay depth by pulsing the green LED depth times.

Parameters
depthThe current relay depth, as reported by mmwlan_register_depth_change_cb().

Definition at line 132 of file relay_mode_led.c.

◆ relay_led_set_failed()

void relay_led_set_failed ( void  )

Indicates that the app has failed to connect.

Definition at line 127 of file relay_mode_led.c.