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
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
111
127
141 (*app_lib_beacon_tx_enable_beacons_f)(bool enabled);
142
160 (*app_lib_beacon_tx_set_beacon_interval_f)(uint32_t interval);
161
181 (*app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t * power_p);
182
200 uint8_t index,
202
229 (*app_lib_beacon_tx_set_beacon_contents_f)(uint_fast8_t index,
230 const uint8_t *bytes,
231 size_t num_bytes);
232
245
246#endif /* APP_LIB_BEACON_TX_H_ */
app_res_e
Definition wms_app.h:202
app_res_e(* app_lib_beacon_tx_set_beacon_contents_f)(uint_fast8_t index, const uint8_t *bytes, size_t num_bytes)
app_lib_beacon_tx_channels_mask_e
@ APP_LIB_BEACON_TX_CHANNELS_ALL
@ APP_LIB_BEACON_TX_CHANNELS_37_38_39
@ APP_LIB_BEACON_TX_CHANNELS_37_39
@ APP_LIB_BEACON_TX_CHANNELS_37_38
@ APP_LIB_BEACON_TX_CHANNELS_37
@ APP_LIB_BEACON_TX_CHANNELS_38_39
@ APP_LIB_BEACON_TX_CHANNELS_38
@ APP_LIB_BEACON_TX_CHANNELS_39
app_res_e(* app_lib_beacon_tx_set_beacon_interval_f)(uint32_t interval)
app_lib_beacon_tx_set_beacon_contents_f setBeaconContents
app_res_e(* app_lib_beacon_tx_set_beacon_channels_f)(uint8_t index, app_lib_beacon_tx_channels_mask_e mask)
app_lib_beacon_tx_set_beacon_interval_f setBeaconInterval
app_res_e(* app_lib_beacon_tx_set_beacon_power_f)(uint8_t index, int8_t *power_p)
app_lib_beacon_tx_enable_beacons_f enableBeacons
app_lib_beacon_tx_clear_beacons_f clearBeacons
app_res_e(* app_lib_beacon_tx_clear_beacons_f)(void)
app_res_e(* app_lib_beacon_tx_enable_beacons_f)(bool enabled)
app_lib_beacon_tx_set_beacon_channels_f setBeaconChannels
app_lib_beacon_tx_set_beacon_power_f setBeaconPower