Classes | Typedefs | Enumerations | Functions
ble.h File Reference

include all ble sdk header files More...

`#include "ble_att.h"`
`#include "ble_error.h"`
`#include "ble_gapc.h"`
`#include "ble_gapm.h"`
`#include "ble_gatt.h"`
`#include "ble_gattc.h"`
`#include "ble_gatts.h"`
`#include "ble_l2cap.h"`
`#include "ble_prf.h"`
`#include "ble_sec.h"`
`#include "ble_event.h"`
`#include <stdio.h>`
Include dependency graph for ble.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Classes
struct | stack_heaps_table_t
| The table contains the pointers to four arrays which are used as heap memory by BLE stack in ROM. More...
struct | hci_uart_call_t
| The function pointers for HCI UART. More...

## Typedefs
typedef void(* | ble_sync_evt_cb_t) (uint32_t sync_cnt, uint16_t sync_period)
| The BLE sync event callback. More...

## Enumerations
enum | ble_rf_tx_mode_t { BLE_RF_TX_MODE_INVALID = 0, BLE_RF_TX_MODE_LP_MODE = 1, BLE_RF_TX_MODE_ULP_MODE = 2 }
| RF TX mode. More...
enum | ble_rf_match_circuit_t { BLE_RF_MATCH_CIRCUIT_25OHM = 25, BLE_RF_MATCH_CIRCUIT_100OHM = 100 }
| The resistance value (ohm) of the RF match circuit. More...

## Functions
uint16_t | ble_stack_init (ble_evt_handler_t evt_handler, stack_heaps_table_t *p_heaps_table)
| Initialize BLE Stack. More...
void | ble_stack_controller_init (stack_heaps_table_t *p_heaps_table)
| Initialize only BLE Stack Controller. More...
void | ble_hci_uart_register (uint8_t id, hci_uart_call_t *api)
| Register UART instance for HCI. More...
void | ble_idle_time_notify_cb_register (void(*callback)(uint32_t hs))
| Register BLE idle time notification callback function. More...
void | ble_activity_start_notify_cb_register (void(*callback)(ble_gap_actv_role_t e_role, uint8_t index))
| Register BLE activity start notification callback function. More...
void | ble_activity_end_notify_cb_register (void(*callback)(ble_gap_actv_role_t e_role, uint8_t index))
| Register BLE activity end notification callback function. More...
uint16_t | ble_sync_source_create (uint16_t period)
| Create sync source. More...
uint16_t | ble_sync_evt_cb_register (ble_sync_evt_cb_t sync_evt_cb)
| Register sync event callback. More...
uint16_t | ble_sync_source_distribute (uint8_t conn_idx)
| Distribute sync source. More...
uint16_t | ble_sync_source_destroy (void)
| Destroy sync source. More...
uint8_t | ble_rf_tx_mode_set (ble_rf_tx_mode_t e_rf_tx_mode)
| Change the RF TX mode of LP or ULP. More...
ble_rf_tx_mode_t | ble_rf_tx_mode_get (void)
| Get the RF TX mode of LP or ULP. More...
void | ble_rf_match_circuit_set (ble_rf_match_circuit_t e_ohm)
| Set the resistance value of the RF match circuit (unit: ohm). More...
ble_rf_match_circuit_t | ble_rf_match_circuit_get (void)
| Get the resistance value of the RF match circuit (unit: ohm). More...
void | send_signal_carrier_wave (uint8_t channel)
| Generate a signal carrier wave. More...

## Detailed Description

include all ble sdk header files

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file ble.h.