Nordic Semiconductor nRF5 AirFuel SDK
version 2.2.0
|
#include "ptu_beacons.h"
#include "ptu_sensors.h"
#include "ptu_conn_man.h"
#include "ptu_distant_list_handler.h"
#include "ptu_power_ctl.h"
#include "ptu_test_mux.h"
Go to the source code of this file.
Functions | |
API implementation | |
void | ptu_beacons_start (void) |
Start PTU Beacons. | |
void | ptu_beacons_init (void) |
Initialize beacons handling. | |
Static functions and variables | |
enum | ptu_beacon_status_t { PTU_BEACON_STATUS_OFF, PTU_BEACON_STATUS_SHORT, PTU_BEACON_STATUS_LONG, PTU_BEACON_STATUS_EXTENDED } |
Beacon status. More... | |
static ptu_beacon_ctl_t | m_beacon_ctl |
static bool | long_beacon_extension = false |
APP_TIMER_DEF (m_beacon_timer_id) | |
APP_TIMER_DEF (m_extended_beacon_load_var_timer_id) | |
static void | m_extended_beacon_load_var_handler (void *p_context) |
Handler for extended beacon load variation timer. | |
static void | m_beacon_timer_handler (void *context) |
Function for controlling beacon behaviour. More... | |
enum ptu_beacon_status_t |
Beacon status.
Enumerator | |
---|---|
PTU_BEACON_STATUS_OFF |
Beacon off. |
PTU_BEACON_STATUS_SHORT |
Short beacon on. |
PTU_BEACON_STATUS_LONG |
Long beacon on. |
PTU_BEACON_STATUS_EXTENDED |
Extended beacon on. |
Definition at line 29 of file ptu_beacons.c.
APP_TIMER_DEF | ( | m_beacon_timer_id | ) |
Beacon timer
APP_TIMER_DEF | ( | m_extended_beacon_load_var_timer_id | ) |
Extended beacon timer
|
static |
Function for controlling beacon behaviour.
[in] | context | Interrupt context. |
Definition at line 76 of file ptu_beacons.c.
|
static |
Beacon control structure
Definition at line 45 of file ptu_beacons.c.
|
static |
Should long beacon be extended?
Definition at line 48 of file ptu_beacons.c.