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 
141 typedef app_res_e
143 
161 typedef app_res_e
163 
183 typedef app_res_e
184  (*app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t * power_p);
185 
202 typedef app_res_e
204  uint8_t index,
206 
233 typedef app_res_e
235  const uint8_t *bytes,
236  size_t num_bytes);
237 
241 typedef struct
242 {
250 
251 #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:184
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:234
wms_app.h
app_lib_beacon_tx_t::enableBeacons
app_lib_beacon_tx_enable_beacons_f enableBeacons
Definition: wms_beacon_tx.h:244
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:245
app_lib_beacon_tx_t::setBeaconContents
app_lib_beacon_tx_set_beacon_contents_f setBeaconContents
Definition: wms_beacon_tx.h:248
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:203
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:162
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:241
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:247
app_lib_beacon_tx_t::setBeaconPower
app_lib_beacon_tx_set_beacon_power_f setBeaconPower
Definition: wms_beacon_tx.h:246
app_lib_beacon_tx_t::clearBeacons
app_lib_beacon_tx_clear_beacons_f clearBeacons
Definition: wms_beacon_tx.h:243
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:142