mirror of https://github.com/ARMmbed/mbed-os.git
incorrect retval usage fixed
parent
aa90f0df65
commit
3c1a5a4a56
|
@ -544,21 +544,21 @@ public:
|
|||
/**
|
||||
* Initialise stack. Called before first use.
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t initialize() = 0;
|
||||
|
||||
/**
|
||||
* Finalise all actions. Called before shutdown.
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t terminate() = 0;
|
||||
|
||||
/**
|
||||
* Reset to same state as after initialize.
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t reset() = 0;
|
||||
|
||||
|
@ -573,7 +573,7 @@ public:
|
|||
* @warning: The number of entries is considered fixed.
|
||||
*
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E: 7.8.41
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual uint8_t read_resolving_list_capacity() = 0;
|
||||
|
||||
|
@ -584,7 +584,7 @@ public:
|
|||
* @param[in] peer_identity_address address of the device whose entry is to be added
|
||||
* @param[in] peer_irk peer identity resolving key
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E: 7.8.38
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t add_device_to_resolving_list(
|
||||
advertising_peer_address_type_t peer_identity_address_type,
|
||||
|
@ -598,7 +598,7 @@ public:
|
|||
* @param[in] peer_identity_address_type public/private indicator
|
||||
* @param[in] peer_identity_address address of the device whose entry is to be removed
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E: 7.8.39
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t remove_device_from_resolving_list(
|
||||
advertising_peer_address_type_t peer_identity_address_type,
|
||||
|
@ -609,7 +609,7 @@ public:
|
|||
* Remove all devices from the resolving list.
|
||||
*
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part E: 7.8.40
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t clear_resolving_list() = 0;
|
||||
|
||||
|
@ -626,7 +626,7 @@ public:
|
|||
* @param[in] initiator_dist key distribution
|
||||
* @param[in] responder_dist key distribution
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part H - 3.5.1
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t send_pairing_request(
|
||||
connection_handle_t connection,
|
||||
|
@ -645,7 +645,7 @@ public:
|
|||
* @param[in] authentication_requirements authentication requirements
|
||||
* @param[in] initiator_dist key distribution
|
||||
* @param[in] responder_dist key distribution
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t send_pairing_response(
|
||||
connection_handle_t connection,
|
||||
|
@ -661,7 +661,7 @@ public:
|
|||
* @param[in] connection connection handle
|
||||
* @param[in] reason pairing failure error
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part H - 3.5.5
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t cancel_pairing(
|
||||
connection_handle_t connection,
|
||||
|
@ -676,7 +676,7 @@ public:
|
|||
* Check if the Secure Connections feature is supported by the stack and controller.
|
||||
*
|
||||
* @param[out] enabled true if SC are supported
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t get_secure_connections_support(
|
||||
bool &enabled
|
||||
|
@ -686,7 +686,7 @@ public:
|
|||
* Set the IO capability that will be used during pairing feature exchange.
|
||||
*
|
||||
* @param[in] io_capability type of IO capabilities available on the local device
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_io_capability(
|
||||
io_capability_t io_capability
|
||||
|
@ -702,7 +702,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[in] timeout_in_10ms time measured in units of 10 milliseconds
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_authentication_timeout(
|
||||
connection_handle_t connection,
|
||||
|
@ -715,7 +715,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[out] timeout_in_10ms time measured in units of 10 milliseconds
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t get_authentication_timeout(
|
||||
connection_handle_t connection,
|
||||
|
@ -733,7 +733,7 @@ public:
|
|||
* required for pairing. This value shall be in the range
|
||||
* [min_encryption_key_size : 16].
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_encryption_key_requirements(
|
||||
uint8_t min_encryption_key_size,
|
||||
|
@ -748,7 +748,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[in] authentication authentication requirements
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t slave_security_request(
|
||||
connection_handle_t connection,
|
||||
|
@ -769,7 +769,7 @@ public:
|
|||
* @param[in] ediv encryption diversifier from the peer
|
||||
* @param[in] rand random value from the peer
|
||||
* @param[in] mitm does the LTK have man in the middle protection
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t enable_encryption(
|
||||
connection_handle_t connection,
|
||||
|
@ -786,7 +786,7 @@ public:
|
|||
* @param[in] connection connection handle
|
||||
* @param[in] ltk long term key from the peer
|
||||
* @param[in] mitm does the LTK have man in the middle protection
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t enable_encryption(
|
||||
connection_handle_t connection,
|
||||
|
@ -800,7 +800,7 @@ public:
|
|||
*
|
||||
* @param[in] key encryption key
|
||||
* @param[in,out] data data to be encrypted, if successful contains the result
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t encrypt_data(
|
||||
const byte_array_t<16> &key,
|
||||
|
@ -826,7 +826,7 @@ public:
|
|||
* @param[in] ltk long term key
|
||||
* @param[in] mitm does the LTK have man in the middle protection
|
||||
* @param[in] secure_connections is this a secure_connections pairing
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_ltk(
|
||||
connection_handle_t connection,
|
||||
|
@ -839,7 +839,7 @@ public:
|
|||
* Inform the stack we don't have the LTK.
|
||||
*
|
||||
* @param[in] connection connection handle
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_ltk_not_found(
|
||||
connection_handle_t connection
|
||||
|
@ -849,7 +849,7 @@ public:
|
|||
* Set the local IRK.
|
||||
*
|
||||
* @param[in] irk identity resolution key
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_irk(
|
||||
const irk_t &irk
|
||||
|
@ -859,7 +859,7 @@ public:
|
|||
* Set the local CSRK.
|
||||
*
|
||||
* @param[in] csrk signing key
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_csrk(
|
||||
const csrk_t &csrk
|
||||
|
@ -874,7 +874,7 @@ public:
|
|||
*
|
||||
* @param[out] random_data returns 8 octets of random data
|
||||
* @see BLUETOOTH SPECIFICATION Version 5.0 | Vol 2, Part H 2
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t get_random_data(
|
||||
byte_array_t<8> &random_data
|
||||
|
@ -902,7 +902,7 @@ public:
|
|||
* passkey is set to 0 then the security manager generates a random
|
||||
* passkey every time it calls SecurityManagerEvent::on_passkey_display.
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t set_display_passkey(
|
||||
passkey_num_t passkey
|
||||
|
@ -911,7 +911,7 @@ public:
|
|||
/**
|
||||
* Reply to a passkey request received from the SecurityManagerEventHandler.
|
||||
*
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t passkey_request_reply(
|
||||
connection_handle_t connection,
|
||||
|
@ -926,7 +926,7 @@ public:
|
|||
* @param[in] peer_random random number used to generate the confirmation on peer
|
||||
* @param[in] peer_confirm confirmation value to be use for authentication
|
||||
* in secure connections pairing
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t secure_connections_oob_request_reply(
|
||||
connection_handle_t connection,
|
||||
|
@ -940,7 +940,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[in] oob_data pointer to out of band data
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t legacy_pairing_oob_request_reply(
|
||||
connection_handle_t connection,
|
||||
|
@ -953,7 +953,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[in] confirmation true if the user indicated the numbers match
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t confirmation_entered(
|
||||
connection_handle_t connection,
|
||||
|
@ -966,7 +966,7 @@ public:
|
|||
*
|
||||
* @param[in] connection connection handle
|
||||
* @param[in] keypress type of keypress event
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t send_keypress_notification(
|
||||
connection_handle_t connection,
|
||||
|
@ -975,7 +975,7 @@ public:
|
|||
|
||||
/**
|
||||
* Generate local OOB data to be sent to the application which sends it to the peer.
|
||||
* @retval BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
* @return BLE_ERROR_NONE On success, else an error code indicating reason for failure
|
||||
*/
|
||||
virtual ble_error_t generate_secure_connections_oob() = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue