OSDN Git Service

Add comments to the device features and event mask structs
authorZach Johnson <zachoverflow@google.com>
Tue, 14 Oct 2014 23:41:21 +0000 (16:41 -0700)
committerAndre Eisenbach <eisenbach@google.com>
Mon, 16 Mar 2015 23:51:36 +0000 (16:51 -0700)
btcore/include/device_features.h
btcore/include/event_mask.h

index d645595..f3069e3 100644 (file)
@@ -20,6 +20,8 @@
 
 #include <stdint.h>
 
+// Represents a page of device feature enabled/disabled bits returned
+// by the local controller. See the bluetooth spec for bit indexes.
 typedef struct {
   uint8_t as_array[8];
 } bt_device_features_t;
index 23ff7fa..ec662b2 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <stdint.h>
 
+// Represents a mask which can be used to tell the controller which
+// HCI events the stack wishes to be informed about. See the bluetooth
+// spec for more information on what each bit means.
 typedef struct {
   uint8_t as_array[8];
 } bt_event_mask_t;