Loading...
Searching...
No Matches

Interface for the generic BLE address helper functions. More...

Detailed Description

Interface for the generic BLE address helper functions.

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

Definition in file addr.h.

#include <stdint.h>
#include "net/ble.h"
+ Include dependency graph for addr.h:

Go to the source code of this file.

Macros

#define BLUETIL_ADDR_STRLEN   (18U)
 The length of a BLE address string in bytes (including '\0')
 
#define BLUETIL_IPV6_IID_STRLEN   (28U)
 The length of an IPv6 IID string in bytes (including '\0')
 

Functions

void bluetil_addr_swapped_cp (const uint8_t *src, uint8_t *dst)
 Copy address and swap the byte order in the target buffer.
 
void bluetil_addr_sprint (char *out, const uint8_t *addr)
 Convert the given BLE address to a human readable string.
 
void bluetil_addr_print (const uint8_t *addr)
 Print the given BLE address to STDOUT.
 
uint8_t * bluetil_addr_from_str (uint8_t *addr, const char *addr_str)
 Parse a BLE address from the given string.
 
void bluetil_addr_ipv6_l2ll_sprint (char *out, const uint8_t *addr)
 Get a string representation of the given BLE addresses IID-based link local address.
 
void bluetil_addr_ipv6_l2ll_print (const uint8_t *addr)
 Dump the given BLE addresses IPv6 IID-based link local address to STDIO.