Data Structures | |
struct | sibles_adv_connect_mode_config_t |
Configuration of connectable advertising. More... | |
struct | sibles_adv_broadcast_mode_config_t |
Configuration of non-connectable advertising. More... | |
struct | sibles_adv_directed_connect_mode_config_t |
Configuration of directed connectable advertising. More... | |
struct | sibles_adv_extended_mode_config_t |
union | sibles_adv_mode_config_t |
Configuration of different advertising mode (. More... | |
struct | sibles_adv_config_t |
struct | sibles_adv_type_name_t |
The structure of device local name in advertising data. More... | |
struct | sibles_adv_uuid_t |
The structure of service uuid. More... | |
struct | sibles_adv_type_srv_uuid_t |
The structure of service uuid list in advertising data. More... | |
struct | sibles_adv_type_srv_data_t |
The structure of service data in advertising data. More... | |
struct | sibles_adv_type_conn_interval_t |
The structure of perferred slave conneciton interval in advertising data. More... | |
struct | sibles_adv_type_manufacturer_data_t |
The structure of manufacturer specific dat in advertising data. More... | |
struct | sibles_adv_type_customize_t |
The structure of customized advertising data. More... | |
struct | sibles_adv_data_t |
The structure of advertising data filed defined in Supplement to the Bluetooth Core Spec. More... | |
struct | sibles_advertising_para_t |
The structure of advertising configure. More... | |
struct | sibles_gap_adv_data_t |
struct | sibles_advertising_context_t |
The structure of advertising configure. More... | |
struct | sibles_adv_evt_startted_t |
The structure of SIBLES_ADV_EVT_ADV_STARTED. More... | |
struct | sibles_adv_evt_stopped_t |
The structure of SIBLES_ADV_EVT_ADV_STOPPED. More... | |
Macros | |
#define | SIBLES_ADVERTISING_CONTEXT_DECLAR(context) |
Declar sibles advertising context. More... | |
Typedefs | |
typedef uint8_t(* | sibles_advertising_event) (uint8_t event, void *context, void *data) |
The structure of advertising configure. | |
typedef ble_gap_addr_t | sibles_adv_evt_request_peer_addr_t |
The structure of SIBLES_ADV_EVT_REQUEST_PEER_DEVICE_ADDR. | |
Enumerations | |
enum | sibles_adv_mode_t { SIBLES_ADV_CONNECT_MODE, SIBLES_ADV_BROADCAST_MODE, SIBLES_ADV_DIRECTED_CONNECT_MODE } |
Advertising mode. More... | |
enum | sibles_adv_running_mode_t { SIBLES_ADV_MODE_FAST_CONNECT, SIBLES_ADV_MODE_BACKGROUD_CONNECT, SIBLES_ADV_MODE_BROADCAST, SIBLES_ADV_MODE_HIGH_DUTY_DIRECTED, SIBLES_ADV_MODE_LOW_DUTY_DIRECTED } |
Advertising running mode. More... | |
enum | sibles_adv_err_t { SIBLES_ADV_NO_ERR, SIBLES_ADV_NOT_ALLOWED, SIBLES_ADV_PARAM_INVALID, SIBLES_ADV_DATA_LENGTH_EXCEED } |
Advertising error code. More... | |
enum | sibles_adv_event_t { SIBLES_ADV_EVT_ADV_STARTED, SIBLES_ADV_EVT_ADV_STOPPED, SIBLES_ADV_EVT_REQUEST_PEER_DEVICE_ADDR, SIBLES_ADV_EVT_REQUEST_SET_WHITE_LIST } |
Advertising event. More... | |
Functions | |
uint8_t | sibles_advertising_init (sibles_advertising_context_t *context, sibles_advertising_para_t *para) |
Advertising configuration init. More... | |
uint8_t | sibles_advertising_start (sibles_advertising_context_t *context) |
Start advertising. More... | |
uint8_t | sibles_advertising_stop (sibles_advertising_context_t *context) |
Stop advertising. More... | |
uint8_t | sibles_advertising_reconfig (sibles_advertising_context_t *context, sibles_adv_config_t *config) |
Reconfigure parameter of advertising, only could be called init completed but advertising not started. More... | |
uint8_t | sibles_advertising_delete (sibles_advertising_context_t *context) |
uint8_t | sibles_advertising_update_adv_and_scan_rsp_data (sibles_advertising_context_t *context, sibles_adv_data_t *adv_data, sibles_adv_data_t *rsp_data) |
Update advertising and scan response data, only could be called init completed and not starting or stopping advertsing.. More... | |
int | sibles_advertising_evt_handler (uint16_t event_id, uint8_t *data, uint16_t len, uint32_t context) |
#define SIBLES_ADVERTISING_CONTEXT_DECLAR | ( | context | ) |
Declar sibles advertising context.
enum sibles_adv_err_t |
enum sibles_adv_event_t |
Advertising event.
enum sibles_adv_mode_t |
Advertising mode.
Advertising running mode.
uint8_t sibles_advertising_init | ( | sibles_advertising_context_t * | context, |
sibles_advertising_para_t * | para | ||
) |
Advertising configuration init.
[in] | context | service context defined by SIBLES_ADVERTISING_CONTEXT_DECLAR. |
[in] | para | configure advertising behavior. |
result | result( |
uint8_t sibles_advertising_reconfig | ( | sibles_advertising_context_t * | context, |
sibles_adv_config_t * | config | ||
) |
Reconfigure parameter of advertising, only could be called init completed but advertising not started.
[in] | context | service context defined by SIBLES_ADVERTISING_CONTEXT_DECLAR. |
[in] | config | to cofingure adveritsing parameters. |
result | result( |
uint8_t sibles_advertising_start | ( | sibles_advertising_context_t * | context | ) |
Start advertising.
[in] | context | service context defined by SIBLES_ADVERTISING_CONTEXT_DECLAR. |
result | result( |
uint8_t sibles_advertising_stop | ( | sibles_advertising_context_t * | context | ) |
Stop advertising.
[in] | context | service context defined by SIBLES_ADVERTISING_CONTEXT_DECLAR. |
result | result( |
uint8_t sibles_advertising_update_adv_and_scan_rsp_data | ( | sibles_advertising_context_t * | context, |
sibles_adv_data_t * | adv_data, | ||
sibles_adv_data_t * | rsp_data | ||
) |
Update advertising and scan response data, only could be called init completed and not starting or stopping advertsing..
[in] | context | service context defined by SIBLES_ADVERTISING_CONTEXT_DECLAR. |
[in] | adv_data | advertising data. |
[in] | rsp_data | scan response data. |
result | result( |