30 int (*read)(
struct os_ble_device *ble_dev, uint8_t *data,
size_t size,
int milliseconds);
43XRT_MAYBE_UNUSED
static inline int
46 return ble_dev->read(ble_dev, data, size, milliseconds);
54XRT_MAYBE_UNUSED
static inline void
58 if (ble_dev == NULL) {
62 ble_dev->destroy(ble_dev);
static XRT_MAYBE_UNUSED int os_ble_read(struct os_ble_device *ble_dev, uint8_t *data, size_t size, int milliseconds)
Read data from the ble file descriptor, if any, from the given bledevice.
Definition: os_ble.h:44
int os_ble_notify_open(const char *dev_uuid, const char *char_uuid, struct os_ble_device **out_ble)
Returns a notification endpoint from the given device uuid and char uuid.
Definition: os_ble_dbus.c:1068
int os_ble_broadcast_write_value(const char *service_uuid, const char *char_uuid, uint8_t value)
Returns write startpoints from the given device uuid and char uuid.
Definition: os_ble_dbus.c:1087
static XRT_MAYBE_UNUSED void os_ble_destroy(struct os_ble_device **ble_dev_ptr)
Close and free the given device, does null checking and zeroing.
Definition: os_ble.h:55
Representing a single ble notify attribute on a device.
Definition: os_ble.h:29
Header holding common defines.
Auto detect OS and certain features.