dwm_alarm_start

Activates the board alarm for a specified time period.

void dwm_alarm_start(dwm_alarm_start_t*)
Parameters
  • input – led_0, led_1, led_2, motor, buzzer, duration, intensity

  • input – led_0, led_1, led_2, motor, buzzer: ‘0’ | ‘1’ (1 enables particular alarm)

  • duration – 8-bit unsigned integer (alarm time period in multiple of 200 ms)

  • intensity – 8-bit unsigned integer (alarm intensity)

  • outputStatus code

C code example

Not available in the on-module user application.

SPI/UART example

TLV Request

Type

Length

Value

0x85

0x04

  • byte 0: alarm configuration:

    • bit 0 - enable LED 0,

    • bit 1 - enable LED1,

    • bit 2 - enable LED 2,

    • bit 3 - enable buzzer,

    • bit 4 - enable motor

  • byte 1: reserved

  • byte 2: duration in multiple of 100 ms

  • byte 3: intensity

0x19 0x00 0x05 0xff

Type 0x85 means command dwm_alarm_start.

TLV Response

Type

Length

Value (see error codes)

0x40

0x01

0x00

Type 0x40 means Status code of the previous command