BLE specific adaption for the Netdev API. More...

Detailed Description

BLE specific adaption for the Netdev API.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file ble.h.

#include "net/netdev.h"
+ Include dependency graph for ble.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  netdev_ble_pkt_t
 BLE packet structure (as defined by the BLE standard) More...
 
struct  netdev_ble_ctx_t
 Radio context. More...
 

Macros

#define NETDEV_BLE_PDU_MAXLEN   (37U)
 Maximum payload length of a standard BLE packet.
 
#define NETDEV_BLE_CRC_MASK   (0x00ffffff)
 Mask for the actual (3 byte) CRC data in the context's CRC field.
 
#define NETDEV_BLE_CRC_OK   (0x80000000)
 Flag for marking a correct CRC on packet reception.
 

Functions

static int netdev_ble_send (netdev_t *dev, netdev_ble_pkt_t *pkt)
 Send the given packet on the next occasion. More...
 
static int netdev_ble_recv (netdev_t *dev, netdev_ble_pkt_t *pkt)
 Start listening for an incoming packet and write it into pkt. More...
 
static void netdev_ble_set_ctx (netdev_t *dev, netdev_ble_ctx_t *ctx)
 Set the radio context for the given radio device. More...
 
static void netdev_ble_stop (netdev_t *dev)
 Stop the ongoing RX/TX sequence. More...