-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlightbulb.h
50 lines (42 loc) · 2.14 KB
/
lightbulb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/***************************************************************************//**
* @file
* @brief Lightbulb module
*******************************************************************************
* # License
* <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b>
*******************************************************************************
*
* The licensor of this software is Silicon Laboratories Inc. Your use of this
* software is governed by the terms of Silicon Labs Master Software License
* Agreement (MSLA) available at
* www.silabs.com/about-us/legal/master-software-license-agreement. This
* software is distributed to you in Source Code format and is governed by the
* sections of the MSLA applicable to Source Code.
*
******************************************************************************/
#ifndef LIGHTBULB_H
#define LIGHTBULB_H
/* Bluetooth stack headers */
#include "native_gecko.h"
/***********************************************************************************************//**
* \defgroup Lightbulb
* \brief Lightbulb state and associated mesh models.
**************************************************************************************************/
/***********************************************************************************************//**
* @addtogroup Lightbulb
* @{
**************************************************************************************************/
/***************************************************************************//**
* Handling of lightbulb timer events.
*
* @param[in] evt Pointer to incoming event.
******************************************************************************/
void handle_lightbulb_timer_evt(struct gecko_cmd_packet *evt);
/***************************************************************************//**
* Lightbulb state initialization.
* This is called at each boot if provisioning is already done.
* Otherwise this function is called after provisioning is completed.
******************************************************************************/
void lightbulb_state_init(void);
/** @} (end addtogroup Lightbulb) */
#endif /* LIGHTBULB_H */