ble/stack/context.h header reference
[Bluetooth Low Energy library module]

The source code of this header can be browsed online.

Description [link] 

this header contains all declarations for the library stack context object.

Members [link] 

Type [link] 

Functions [link] 

Members detail [link] 

#define BLE_STACK_CONTEXT_H_ [link] 

This macro is declared in ble/stack/context.h source file, line 21.

uint32_t ble_stack_access_address_generate(struct ble_stack_context_s *ctx) [link] 

This function is declared in ble/stack/context.h source file, line 123.

this function generates a data connection access address. Generated AA abides constraints from 6.B.2.1.2.

void ble_stack_context_ad_collect(struct ble_stack_context_s *ctx, uint8_t *ad, size_t ad_size_max, size_t *ad_size_used) [link] 

This function is declared in ble/stack/context.h source file, line 132.

this function retrieves advertising data from GATT Database. This will contain advertised services, among other PDUs.

error_t ble_stack_context_address_non_resolvable_generate(struct ble_stack_context_s *ctx, struct ble_addr_s *addr) [link] 

This function is declared in ble/stack/context.h source file, line 102.

this function generates a non-resolvable address.

error_t ble_stack_context_address_resolvable_generate(struct ble_stack_context_s *ctx, struct ble_addr_s *addr) [link] 

This function is declared in ble/stack/context.h source file, line 110.

this function generates a resolvable address using the device IRK from security database.

Preprocessor condition: defined( CONFIG_BLE_SECURITY_DB )

void ble_stack_context_cleanup(struct ble_stack_context_s *ctx) [link] 

This function is declared in ble/stack/context.h source file, line 86.

this function releases all stack context resources.

error_t ble_stack_context_init(struct ble_stack_context_s *ctx, const char *ble_name, const char *rtc_name, const char *rng_name, const char *sec_name, struct persist_context_s *persist) [link] 

This function is declared in ble/stack/context.h source file, line 81.

this function initializes a stack context from relevant device paths.

error_t ble_stack_context_local_address_get(struct ble_stack_context_s *ctx, struct ble_addr_s *addr) [link] 

This function is declared in ble/stack/context.h source file, line 117.

this function retrieves device address from radio hardware.

void ble_stack_context_release(struct ble_stack_context_s *ctx) [link] 

This function is declared in ble/stack/context.h source file, line 96.

this function marks BLE device from the context as unused

struct ble_stack_context_s [link] 

This struct is declared in ble/stack/raw_connection.h source file, line 30.

this struct is an object used as device context for other stack utilities like peripheral and central contexts.

The context object contains references to all necessary resources for stack utilities:

  • network stack scheduler and packet allocator pool,

  • radio device,

  • a GATT Database,

  • a random number generator and cryptography device.

FieldDescription
struct dev_rng_s rng;
struct ble_security_db_s security_db;
struct device_net_s ble;
struct net_scheduler_s scheduler;
struct buffer_pool_s packet_pool;
struct ble_gattdb_s gattdb;
struct device_crypto_s crypto;

void ble_stack_context_use(struct ble_stack_context_s *ctx) [link] 

This function is declared in ble/stack/context.h source file, line 91.

this function marks BLE device from the context as used

Valid XHTML 1.0 StrictGenerated by diaxen on Thu Aug 4 15:44:05 2022 using MkDoc