Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
aconnoBLE.h
00001 /* 00002 * Aconno BLE template 00003 * Made by Jurica @ aconno 00004 * All rights reserved 00005 * 00006 */ 00007 00008 #ifndef ACONNO_BLE_H 00009 #define ACONNO_BLE_H 00010 00011 #include "mbed.h" 00012 #include "ble/BLE.h" 00013 #include "GapAdvertisingData.h" 00014 00015 /** 00016 * Ble init error callback 00017 * @param ble referance to BLE object 00018 * @param error Error code 00019 */ 00020 void onBleInitError(BLE &ble, ble_error_t error); 00021 00022 /** 00023 * BLE event callback. 00024 * @param context 00025 */ 00026 void scheduleBleEventsProcessing( 00027 BLE::OnEventsToProcessCallbackContext* context); 00028 00029 /** 00030 * Get pointer to BLE event queue. 00031 * @return BLE event queue. 00032 */ 00033 EventQueue *getBLEEventQueue(void); 00034 00035 /** 00036 * ble init complete callback 00037 * @param params 00038 */ 00039 void bleInitComplete(BLE::InitializationCompleteCallbackContext *params); 00040 00041 /** 00042 * onConnection callback 00043 * @param params ConnectionCallbackParams_t 00044 */ 00045 void onConnectionCallback(const Gap::ConnectionCallbackParams_t *params); 00046 00047 /** 00048 * Disconnection callback 00049 * @param params DisconnectionCallbackParams_t 00050 */ 00051 void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params); 00052 00053 /** 00054 * onDataWritten callback 00055 * @param params GattWriteCallbackParams 00056 */ 00057 void onDataCallback(const GattWriteCallbackParams *params); 00058 00059 #endif // ACONNO_BLE_H
Generated on Tue Aug 23 2022 10:29:07 by
1.7.2