Wirepas SDK
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 "app/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 
157 typedef app_res_e
159 
175 typedef app_res_e
176  (*app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t * power_p);
177 
190 typedef app_res_e
192  uint8_t index,
194 
217 typedef app_res_e
219  const uint8_t *bytes,
220  size_t num_bytes);
221 
225 typedef struct
226 {
234 
235 #endif /* APP_LIB_BEACON_TX_H_ */
app_lib_beacon_tx_t::enableBeacons
app_lib_beacon_tx_enable_beacons_f enableBeacons
Definition: beacon_tx.h:228
APP_LIB_BEACON_TX_CHANNELS_37_39
@ APP_LIB_BEACON_TX_CHANNELS_37_39
Definition: beacon_tx.h:103
APP_LIB_BEACON_TX_CHANNELS_ALL
@ APP_LIB_BEACON_TX_CHANNELS_ALL
Definition: beacon_tx.h:109
app_lib_beacon_tx_clear_beacons_f
app_res_e(* app_lib_beacon_tx_clear_beacons_f)(void)
Definition: beacon_tx.h:126
APP_LIB_BEACON_TX_CHANNELS_37
@ APP_LIB_BEACON_TX_CHANNELS_37
Definition: beacon_tx.h:95
APP_LIB_BEACON_TX_CHANNELS_38_39
@ APP_LIB_BEACON_TX_CHANNELS_38_39
Definition: beacon_tx.h:105
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: beacon_tx.h:191
app_lib_beacon_tx_t::setBeaconInterval
app_lib_beacon_tx_set_beacon_interval_f setBeaconInterval
Definition: beacon_tx.h:229
app_lib_beacon_tx_t
Definition: beacon_tx.h:225
app_lib_beacon_tx_channels_mask_e
app_lib_beacon_tx_channels_mask_e
Definition: beacon_tx.h:92
app_lib_beacon_tx_t::setBeaconContents
app_lib_beacon_tx_set_beacon_contents_f setBeaconContents
Definition: beacon_tx.h:232
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: beacon_tx.h:176
app.h
app_lib_beacon_tx_set_beacon_interval_f
app_res_e(* app_lib_beacon_tx_set_beacon_interval_f)(uint32_t interval)
Definition: beacon_tx.h:158
app_lib_beacon_tx_t::setBeaconChannels
app_lib_beacon_tx_set_beacon_channels_f setBeaconChannels
Definition: beacon_tx.h:231
APP_LIB_BEACON_TX_CHANNELS_38
@ APP_LIB_BEACON_TX_CHANNELS_38
Definition: beacon_tx.h:97
APP_LIB_BEACON_TX_CHANNELS_39
@ APP_LIB_BEACON_TX_CHANNELS_39
Definition: beacon_tx.h:99
app_lib_beacon_tx_enable_beacons_f
app_res_e(* app_lib_beacon_tx_enable_beacons_f)(bool enabled)
Definition: beacon_tx.h:142
APP_LIB_BEACON_TX_CHANNELS_37_38_39
@ APP_LIB_BEACON_TX_CHANNELS_37_38_39
Definition: beacon_tx.h:107
app_lib_beacon_tx_t::setBeaconPower
app_lib_beacon_tx_set_beacon_power_f setBeaconPower
Definition: beacon_tx.h:230
APP_LIB_BEACON_TX_CHANNELS_37_38
@ APP_LIB_BEACON_TX_CHANNELS_37_38
Definition: beacon_tx.h:101
app_res_e
app_res_e
Definition: app.h:201
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: beacon_tx.h:218
app_lib_beacon_tx_t::clearBeacons
app_lib_beacon_tx_clear_beacons_f clearBeacons
Definition: beacon_tx.h:227