From d5f9b352fc907efe5dfbc07ef389834c15fab882 Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 14 Jun 2024 17:51:26 -0400 Subject: [PATCH] Bluetooth updates for DSX --- include/libdivecomputer/ble.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/libdivecomputer/ble.h b/include/libdivecomputer/ble.h index 1452873..a13fe87 100644 --- a/include/libdivecomputer/ble.h +++ b/include/libdivecomputer/ble.h @@ -33,6 +33,21 @@ extern "C" { */ #define DC_IOCTL_BLE_GET_NAME DC_IOCTL_IOR('b', 0, DC_IOCTL_SIZE_VARIABLE) +/** + * Get the bluetooth authentication PIN code. + * + * The data format is a NULL terminated string. + */ +#define DC_IOCTL_BLE_GET_PINCODE DC_IOCTL_IOR('b', 1, DC_IOCTL_SIZE_VARIABLE) + +/** + * Get/set the bluetooth authentication access code. + * + * The data format is a variable sized byte array. + */ +#define DC_IOCTL_BLE_GET_ACCESSCODE DC_IOCTL_IOR('b', 2, DC_IOCTL_SIZE_VARIABLE) +#define DC_IOCTL_BLE_SET_ACCESSCODE DC_IOCTL_IOW('b', 2, DC_IOCTL_SIZE_VARIABLE) + #ifdef __cplusplus } #endif /* __cplusplus */