Wirepas SDK
wms_beacon_tx.h
Go to the documentation of this file.
1 /* Copyright 2017 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
26 #ifndef APP_LIB_BEACON_TX_H_
27 #define APP_LIB_BEACON_TX_H_
28 
29 #include <stdlib.h>
30 #include <stdint.h>
31 #include <stdbool.h>
32 
33 #include "wms_app.h"
34 
38 #define APP_LIB_BEACON_TX_NAME 0x0cb930b8
39 
40 
43 #define APP_LIB_BEACON_TX_VERSION 0x200
44 
50 #define APP_LIB_BEACON_TX_MIN_INTERVAL 100
51 
57 #define APP_LIB_BEACON_TX_MAX_INTERVAL 60000
58 
64 #define APP_LIB_BEACON_TX_DEFAULT_INTERVAL 1000
65 
75 #define APP_LIB_BEACON_TX_MAX_INDEX 7
76 
85 #define APP_LIB_BEACON_TX_MAX_NUM_BYTES (38)
86 
92 typedef enum
93 {
111 
125 typedef app_res_e
127 
140 typedef app_res_e
142 
159 typedef app_res_e
161 
180 typedef app_res_e
181  (*app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t * power_p);
182 
198 typedef app_res_e
200  uint8_t index,
202 
228 typedef app_res_e
230  const uint8_t *bytes,
231  size_t num_bytes);
232 
236 typedef struct
237 {
245 
246 #endif /* APP_LIB_BEACON_TX_H_ */
app_lib_beacon_tx_set_beacon_power_f
app_res_e(* app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t *power_p)
Definition: wms_beacon_tx.h:181
APP_LIB_BEACON_TX_CHANNELS_37_38_39
@ APP_LIB_BEACON_TX_CHANNELS_37_38_39
Definition: wms_beacon_tx.h:107
app_res_e
app_res_e
Definition: wms_app.h:201
app_lib_beacon_tx_clear_beacons_f
app_res_e(* app_lib_beacon_tx_clear_beacons_f)(void)
Definition: wms_beacon_tx.h:126
app_lib_beacon_tx_set_beacon_contents_f
app_res_e(* app_lib_beacon_tx_set_beacon_contents_f)(uint_fast8_t index, const uint8_t *bytes, size_t num_bytes)
Definition: wms_beacon_tx.h:229
wms_app.h
app_lib_beacon_tx_t::enableBeacons
app_lib_beacon_tx_enable_beacons_f enableBeacons
Definition: wms_beacon_tx.h:239
APP_LIB_BEACON_TX_CHANNELS_38
@ APP_LIB_BEACON_TX_CHANNELS_38
Definition: wms_beacon_tx.h:97
app_lib_beacon_tx_t::setBeaconInterval
app_lib_beacon_tx_set_beacon_interval_f setBeaconInterval
Definition: wms_beacon_tx.h:240
app_lib_beacon_tx_t::setBeaconContents
app_lib_beacon_tx_set_beacon_contents_f setBeaconContents
Definition: wms_beacon_tx.h:243
app_lib_beacon_tx_set_beacon_channels_f
app_res_e(* app_lib_beacon_tx_set_beacon_channels_f)(uint8_t index, app_lib_beacon_tx_channels_mask_e mask)
Definition: wms_beacon_tx.h:199
APP_LIB_BEACON_TX_CHANNELS_39
@ APP_LIB_BEACON_TX_CHANNELS_39
Definition: wms_beacon_tx.h:99
APP_LIB_BEACON_TX_CHANNELS_37_39
@ APP_LIB_BEACON_TX_CHANNELS_37_39
Definition: wms_beacon_tx.h:103
app_lib_beacon_tx_channels_mask_e
app_lib_beacon_tx_channels_mask_e
Definition: wms_beacon_tx.h:92
APP_LIB_BEACON_TX_CHANNELS_37
@ APP_LIB_BEACON_TX_CHANNELS_37
Definition: wms_beacon_tx.h:95
app_lib_beacon_tx_set_beacon_interval_f
app_res_e(* app_lib_beacon_tx_set_beacon_interval_f)(uint32_t interval)
Definition: wms_beacon_tx.h:160
APP_LIB_BEACON_TX_CHANNELS_38_39
@ APP_LIB_BEACON_TX_CHANNELS_38_39
Definition: wms_beacon_tx.h:105
app_lib_beacon_tx_t
Definition: wms_beacon_tx.h:236
APP_LIB_BEACON_TX_CHANNELS_37_38
@ APP_LIB_BEACON_TX_CHANNELS_37_38
Definition: wms_beacon_tx.h:101
app_lib_beacon_tx_t::setBeaconChannels
app_lib_beacon_tx_set_beacon_channels_f setBeaconChannels
Definition: wms_beacon_tx.h:242
app_lib_beacon_tx_t::setBeaconPower
app_lib_beacon_tx_set_beacon_power_f setBeaconPower
Definition: wms_beacon_tx.h:241
app_lib_beacon_tx_t::clearBeacons
app_lib_beacon_tx_clear_beacons_f clearBeacons
Definition: wms_beacon_tx.h:238
APP_LIB_BEACON_TX_CHANNELS_ALL
@ APP_LIB_BEACON_TX_CHANNELS_ALL
Definition: wms_beacon_tx.h:109
app_lib_beacon_tx_enable_beacons_f
app_res_e(* app_lib_beacon_tx_enable_beacons_f)(bool enabled)
Definition: wms_beacon_tx.h:141