DC_DESCRIPTOR_GET_TRANSPORTS(3) | Library Functions Manual | DC_DESCRIPTOR_GET_TRANSPORTS(3) |
dc_descriptor_get_transports
—
#include
<libdivecomputer/descriptor.h>
unsigned int
dc_descriptor_get_transports
(dc_descriptor_t
*descriptor);
The result is combination of
DC_TRANSPORT_USB
,
DC_TRANSPORT_USBHID
,
DC_TRANSPORT_BLE
,
DC_TRANSPORT_BLUETOOTH
,
DC_TRANSPORT_SERIAL
,
DC_TRANSPORT_IRDA
To determine if a specific transport is supported use the following code
unsigned int transports = dc_descriptor_get_transports(descriptor); if(transports & DC_TRANSPORT_USBHID) { // Device supports USB HID as transport }
June 5, 2020 | NetBSD 10.0 |