|
libnx v4.9.0
|
Bluetooth user (bt) service IPC wrapper. More...
#include "../types.h"#include "../kernel/event.h"#include "../services/btdrv.h"#include "../sf/service.h"Go to the source code of this file.
Functions | |
| Result | btInitialize (void) |
| Initialize bt. Only available on [5.0.0+]. | |
| void | btExit (void) |
| Exit bt. | |
| Service * | btGetServiceSession (void) |
| Gets the Service object for the actual bt service session. | |
| Result | btLeClientReadCharacteristic (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, u8 auth_req) |
| LeClientReadCharacteristic. | |
| Result | btLeClientReadDescriptor (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, u8 auth_req) |
| LeClientReadDescriptor. | |
| Result | btLeClientWriteCharacteristic (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const void *buffer, size_t size, u8 auth_req, bool with_response) |
| LeClientWriteCharacteristic. | |
| Result | btLeClientWriteDescriptor (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, const void *buffer, size_t size, u8 auth_req) |
| LeClientWriteDescriptor. | |
| Result | btLeClientRegisterNotification (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id) |
| LeClientRegisterNotification. | |
| Result | btLeClientDeregisterNotification (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id) |
| LeClientDeregisterNotification. | |
| Result | btSetLeResponse (u8 server_if, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *char_uuid, const void *buffer, size_t size) |
| SetLeResponse. | |
| Result | btLeSendIndication (u8 server_if, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *char_uuid, const void *buffer, size_t size, bool noconfirm) |
| LeSendIndication. | |
| Result | btGetLeEventInfo (void *buffer, size_t size, BtdrvBleEventType *type) |
| GetLeEventInfo. | |
| Result | btRegisterBleEvent (Event *out_event) |
| RegisterBleEvent. | |
Bluetooth user (bt) service IPC wrapper.
| Result btGetLeEventInfo | ( | void * | buffer, |
| size_t | size, | ||
| BtdrvBleEventType * | type | ||
| ) |
GetLeEventInfo.
| [in] | buffer | Output buffer. 0x400-bytes from state is written here. See BtdrvLeEventInfo. |
| [in] | size | Output buffer size. |
| [out] | type | Output BtdrvBleEventType. |
| Result btLeClientDeregisterNotification | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id | ||
| ) |
LeClientDeregisterNotification.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| Result btLeClientReadCharacteristic | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id, | ||
| u8 | auth_req | ||
| ) |
LeClientReadCharacteristic.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| [in] | auth_req | BtdrvGattAuthReqType |
| Result btLeClientReadDescriptor | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id, | ||
| const BtdrvGattId * | desc_id, | ||
| u8 | auth_req | ||
| ) |
LeClientReadDescriptor.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| [in] | desc_id | Descriptor GATT ID BtdrvGattId |
| [in] | auth_req | BtdrvGattAuthReqType |
| Result btLeClientRegisterNotification | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id | ||
| ) |
LeClientRegisterNotification.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| Result btLeClientWriteCharacteristic | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id, | ||
| const void * | buffer, | ||
| size_t | size, | ||
| u8 | auth_req, | ||
| bool | with_response | ||
| ) |
LeClientWriteCharacteristic.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| [in] | buffer | Input buffer. |
| [in] | size | Input buffer size, must be <=0x258. |
| [in] | auth_req | BtdrvGattAuthReqType |
| [in] | with_response | Whether to use Write-With-Response write type or not |
| Result btLeClientWriteDescriptor | ( | u32 | connection_handle, |
| bool | is_primary, | ||
| const BtdrvGattId * | serv_id, | ||
| const BtdrvGattId * | char_id, | ||
| const BtdrvGattId * | desc_id, | ||
| const void * | buffer, | ||
| size_t | size, | ||
| u8 | auth_req | ||
| ) |
LeClientWriteDescriptor.
| [in] | connection_handle | ConnectionHandle |
| [in] | is_primary | Is a primary service or not |
| [in] | serv_id | Service GATT ID BtdrvGattId |
| [in] | char_id | Characteristic GATT ID BtdrvGattId |
| [in] | desc_id | Descriptor GATT ID BtdrvGattId |
| [in] | buffer | Input buffer. |
| [in] | size | Input buffer size, must be <=0x258. |
| [in] | auth_req | BtdrvGattAuthReqType |
| Result btLeSendIndication | ( | u8 | server_if, |
| const BtdrvGattAttributeUuid * | serv_uuid, | ||
| const BtdrvGattAttributeUuid * | char_uuid, | ||
| const void * | buffer, | ||
| size_t | size, | ||
| bool | noconfirm | ||
| ) |
LeSendIndication.
| [in] | server_if | Server interface ID |
| [in] | serv_uuid | Service UUID BtdrvGattAttributeUuid |
| [in] | char_uuid | Characteristic UUID BtdrvGattAttributeUuid |
| [in] | buffer | Input buffer. |
| [in] | size | Input buffer size, clamped to max size 0x258. |
| [in] | noconfirm | Whether no confirmation is required (notification) or not (indication) |
RegisterBleEvent.
| [out] | out_event | Output Event with autoclear=true. |
| Result btSetLeResponse | ( | u8 | server_if, |
| const BtdrvGattAttributeUuid * | serv_uuid, | ||
| const BtdrvGattAttributeUuid * | char_uuid, | ||
| const void * | buffer, | ||
| size_t | size | ||
| ) |
SetLeResponse.
| [in] | server_if | Server interface ID |
| [in] | serv_uuid | Service UUID BtdrvGattAttributeUuid |
| [in] | char_uuid | Characteristic UUID BtdrvGattAttributeUuid |
| [in] | buffer | Input buffer. |
| [in] | size | Input buffer size, must be <=0x258. |