GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DC_DESCRIPTOR_GET_TRANSPORTS(3) FreeBSD Library Functions Manual DC_DESCRIPTOR_GET_TRANSPORTS(3)

dc_descriptor_get_transportsGets the transports supported by the given descriptor.

library “libdivecomputer”

#include <libdivecomputer/descriptor.h>

unsigned int
dc_descriptor_get_transports(dc_descriptor_t *descriptor);

Gets the transports supported by the given descriptor. The descriptor usually found by searching through dc_descriptor_iterator(3).

Returns a union (bitwise OR) of the transports supported by the given 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
}

dc_descriptor_iterator(3).

The library “libdivecomputer” library was written by Jef Driesen, jef@libdivecomputer.org.
This manpage is written by
Vincent Hagen, vinnie@script4web.nl.

June 5, 2020 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.