Loading...
Searching...
No Matches
nimble_scanlist.h File Reference

List for keeping scanned BLE devices. More...

Detailed Description

List for keeping scanned BLE devices.

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

Definition in file nimble_scanlist.h.

#include "clist.h"
#include "net/ble.h"
#include "nimble/ble.h"
#include "nimble_scanner.h"
+ Include dependency graph for nimble_scanlist.h:

Go to the source code of this file.

Data Structures

struct  nimble_scanlist_entry_t
 Data structure for holding a single scanlist entry. More...
 

Macros

#define NIMBLE_SCANLIST_SIZE   (20U)
 Default number of list entries that are allocated in RAM.
 

Functions

void nimble_scanlist_init (void)
 Initialize the scanlist.
 
void nimble_scanlist_update (uint8_t type, const ble_addr_t *addr, const nimble_scanner_info_t *info, const uint8_t *ad, size_t len)
 Add/update the entry for the a scanned node.
 
nimble_scanlist_entry_tnimble_scanlist_get_by_pos (unsigned pos)
 Get an entry of the scanlist by its position.
 
nimble_scanlist_entry_tnimble_scanlist_get_next (nimble_scanlist_entry_t *e)
 Get the next entry from the list, pass NULL for getting the first entry.
 
void nimble_scanlist_clear (void)
 Clear all entries in the list.
 
void nimble_scanlist_print (void)
 Dump the entire scanlist to STDIO using nimble_scanlist_print_entry()
 
void nimble_scanlist_print_entry (nimble_scanlist_entry_t *e)
 Dump a single scanlist entry to STDIO.