ble/stack/connection.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 a Connection handler.
Members [link]
Types [link]
- struct ble_stack_connection_handler_s
- struct ble_stack_connection_s
- struct ble_stack_context_handler_s
Functions [link]
- error_t ble_stack_connection_create(struct ble_stack_connection_s *conn, struct ble_stack_context_s *context, const struct ble_stack_connection_handler_s *chandler, const struct ble_stack_context_handler_s *handler, bool_t is_master, const struct ble_phy_params_s *phy_params, const struct ble_gap_preferred_conn_params_s *wanted_timing)
- void ble_stack_connection_drop(struct ble_stack_connection_s *conn)
- void ble_stack_connection_pairing_abort(struct ble_stack_connection_s *conn, enum sm_reason reason)
- void ble_stack_connection_pairing_accept(struct ble_stack_connection_s *conn, bool_t mitm_protection, uint32_t pin, const void *oob_data)
- void ble_stack_connection_pairing_request(struct ble_stack_connection_s *conn, bool_t mitm_protection, bool_t bonding)
Members detail [link]
#define BLE_STACK_CONNECTION_H_ [link]
This macro is declared in ble/stack/connection.h source file, line 21.
error_t ble_stack_connection_create(struct ble_stack_connection_s *conn, struct ble_stack_context_s *context, const struct ble_stack_connection_handler_s *chandler, const struct ble_stack_context_handler_s *handler, bool_t is_master, const struct ble_phy_params_s *phy_params, const struct ble_gap_preferred_conn_params_s *wanted_timing) [link]
This function is declared in ble/stack/connection.h source file, line 96.
void ble_stack_connection_drop(struct ble_stack_connection_s *conn) [link]
This function is declared in ble/stack/connection.h source file, line 114.
struct ble_stack_connection_handler_s [link]
This struct is declared in ble/stack/connection.h source file, line 49.
Field | Description |
---|---|
void (*pairing_requested)(struct ble_stack_connection_s *conn, bool_t bonding) ; | |
void (*pairing_failed)(struct ble_stack_connection_s *conn, enum sm_reason reason) ; | |
void (*bonding_success)(struct ble_stack_connection_s *conn) ; | |
void (*connection_closed)(struct ble_stack_connection_s *conn, uint8_t reason) ; |
void ble_stack_connection_pairing_abort(struct ble_stack_connection_s *conn, enum sm_reason reason) [link]
This function is declared in ble/stack/connection.h source file, line 110.
Preprocessor condition: defined( CONFIG_BLE_CRYPTO )
void ble_stack_connection_pairing_accept(struct ble_stack_connection_s *conn, bool_t mitm_protection, uint32_t pin, const void *oob_data) [link]
This function is declared in ble/stack/connection.h source file, line 107.
Preprocessor condition: defined( CONFIG_BLE_CRYPTO )
void ble_stack_connection_pairing_request(struct ble_stack_connection_s *conn, bool_t mitm_protection, bool_t bonding) [link]
This function is declared in ble/stack/connection.h source file, line 102.
Preprocessor condition: defined( CONFIG_BLE_CRYPTO )
struct ble_stack_connection_s [link]
This struct is declared in ble/stack/connection.h source file, line 75.
this struct is a connection stack utility. This contains reference to layers that are alive while connected.
Field | Description |
---|---|
const struct ble_stack_connection_handler_s * chandler; | |
const struct ble_stack_context_handler_s * handler; | |
struct ble_stack_context_s * context; | |
struct net_layer_s * phy; | |
struct net_layer_s * llcp; | |
struct net_layer_s * att; | |
struct net_layer_s * sm; | |
struct ble_peer_s peer; | |
dev_timer_value_t connection_tk; | |
bool_t is_master; |
struct ble_stack_context_handler_s [link]
This struct is declared in ble/stack/connection.h source file, line 63.
This struct is for internal use only.
Field | Description |
---|---|
void (*pairing_success)(struct ble_stack_connection_s *conn) ; | |
void (*state_changed)(struct ble_stack_connection_s *conn, bool_t connected) ; |