Loading...
Searching...
No Matches
nimble_rpble.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2019-2021 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
83
84#include "nimble_netif.h"
85
86#ifdef __cplusplus
87extern "C" {
88#endif
89
118
122typedef struct {
123 uint8_t inst_id;
124 uint8_t dodag_id[16];
125 uint8_t version;
126 uint8_t role;
127 uint16_t rank;
129
141
150
160
172
173#ifdef __cplusplus
174}
175#endif
176
nimble_phy_t
BLE PHY modes.
Definition nimble_riot.h:70
void(* nimble_netif_eventcb_t)(int handle, nimble_netif_event_t event, const uint8_t *addr)
Event callback signature used for asynchronous event signaling.
int nimble_rpble_init(const nimble_rpble_cfg_t *cfg)
Initialize the nimble_rpble module with the given parameters.
int nimble_rpble_update(const nimble_rpble_ctx_t *ctx)
Update the current RPL context.
int nimble_rpble_param_update(const nimble_rpble_cfg_t *cfg)
Update the used timing parameters.
int nimble_rpble_eventcb(nimble_netif_eventcb_t cb)
Register a callback that is called on BLE events.
GNRC netif implementation for NimBLE.
rpble configuration parameters
uint16_t conn_latency
used slave latency for parent connection
uint32_t scan_itvl_ms
scan interval when scanning for parents, in ms
uint32_t eval_itvl_min_ms
amount of time a node searches for potential parents, lower bound in ms
uint32_t conn_scan_to_ms
timeout when connecting to parent, in ms
uint32_t conn_scan_itvl_ms
scan interval when connecting to parent, in ms
uint32_t adv_itvl_ms
advertising interval used when advertising RPL context to child nodes, in ms
uint32_t eval_itvl_max_ms
amount of time a node searches for potential parents, upper bound in ms
uint32_t conn_itvl_max_ms
upper bound of connection interval range, in ms
uint32_t conn_itvl_min_ms
lower bound of connection interval range, in ms
uint32_t conn_super_to_ms
used supervision timeout for parent connection, in ms
uint32_t scan_win_ms
scan window when scanning for parents, in ms
uint32_t conn_scan_win_ms
scan window when connecting to parent, in ms
nimble_phy_t phy_mode
BLE PHY mode to use.
RPL DODAG information.
uint16_t rank
the node's rank in the DODAG
uint8_t dodag_id[16]
DODAG ID.
uint8_t role
RPL role of the node.
uint8_t version
DODAG version.
uint8_t inst_id
instance ID