aboutsummaryrefslogtreecommitdiffstats
path: root/src/vfs/prerelease/ant_driver_defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vfs/prerelease/ant_driver_defines.h')
-rw-r--r--src/vfs/prerelease/ant_driver_defines.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/vfs/prerelease/ant_driver_defines.h b/src/vfs/prerelease/ant_driver_defines.h
index c30c6e4..3eb5c31 100644
--- a/src/vfs/prerelease/ant_driver_defines.h
+++ b/src/vfs/prerelease/ant_driver_defines.h
@@ -34,7 +34,7 @@
// |----------------------|-----------------|
// |Optional| Data | Opt. | ... | Optional |
// | Opcode | Size | Sync | | Checksum |
-
+
// Data may include any number of ANT packets, with no sync byte or checksum.
// A read from the driver may return any number of ANT HCI packets.
@@ -46,25 +46,27 @@
// Set the file name the driver creates for the ANT device:
// If chip uses separate command and data paths:
-#define ANT_COMMANDS_DEVICE_NAME "/dev/smd5"
-#define ANT_DATA_DEVICE_NAME "/dev/smd6"
+// #define ANT_COMMANDS_DEVICE_NAME "/dev/smd5"
+// #define ANT_DATA_DEVICE_NAME "/dev/smd6"
// OR
// If chip uses one path:
-// #define ANT_DEVICE_NAME "/dev/Z"
+#define ANT_DEVICE_NAME "/dev/ant"
-
// Set to the number of bytes of header is for Opcode:
#define ANT_HCI_OPCODE_SIZE 0
-
+
+// Set to the number of bytes of header for channel ID
+#define ANT_HCI_CHANNEL_SIZE 1
+
// Set to the number of bytes of header is for Data Size:
#define ANT_HCI_SIZE_SIZE 1
-
+
// Set to the number of bytes of header is for Sync:
#define ANT_HCI_SYNC_SIZE 0
-
+
// Set to the number of bytes of footer is for Checksum:
#define ANT_HCI_CHECKSUM_SIZE 0
-
+
// ---------------------- OPTIONAL
// If hard reset is supported, define ANT_IOCTL_RESET
@@ -78,8 +80,12 @@
// define the message content:
// That signals Flow Go:
#define ANT_FLOW_GO ((ANT_U8)0x00)
-
+
// That signals Flow Stop:
#define ANT_FLOW_STOP ((ANT_U8)0x80)
+// If using a channel ID byte, define the ids.
+#define ANT_HCI_COMMAND_CHANNEL ((ANT_U8)0x0C)
+#define ANT_HCI_DATA_CHANNEL ((ANT_U8)0x0E)
+
#endif /* ifndef __VFS_PRERELEASE_H */