aboutsummaryrefslogtreecommitdiffstats
path: root/src/bluez_hci/inc/ant_rx.h
diff options
context:
space:
mode:
authorSatish kumar sugasi <ssugas@codeaurora.org>2012-12-08 20:51:55 -0800
committerSatish kumar sugasi <ssugas@codeaurora.org>2012-12-08 20:51:55 -0800
commit8dbae1cbcd8ee795e2d30f5ac26996d5c235d38b (patch)
tree64258b09cbadd7ce47b7d1f3d71880a43764b914 /src/bluez_hci/inc/ant_rx.h
parent709b0e9416802fff4b45611f17bf878a64af07d6 (diff)
parent274e0ddfa092938c5839643af6abed3e6e7ef773 (diff)
downloadandroid_external_ant-wireless_ant_native-8dbae1cbcd8ee795e2d30f5ac26996d5c235d38b.tar.gz
android_external_ant-wireless_ant_native-8dbae1cbcd8ee795e2d30f5ac26996d5c235d38b.tar.bz2
android_external_ant-wireless_ant_native-8dbae1cbcd8ee795e2d30f5ac26996d5c235d38b.zip
Merge remote-tracking branch 'remotes/origin/caf/github/master'
Diffstat (limited to 'src/bluez_hci/inc/ant_rx.h')
-rw-r--r--src/bluez_hci/inc/ant_rx.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/bluez_hci/inc/ant_rx.h b/src/bluez_hci/inc/ant_rx.h
new file mode 100644
index 0000000..aff076d
--- /dev/null
+++ b/src/bluez_hci/inc/ant_rx.h
@@ -0,0 +1,56 @@
+/*
+ * ANT Stack
+ *
+ * Copyright 2009 Dynastream Innovations
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+/******************************************************************************\
+*
+* FILE NAME: ant_rx.h
+*
+* BRIEF:
+* This file defines the receive thread function and the ANTHCIRxParams
+* type for storing the configuration of the receive thread.
+*
+*
+\******************************************************************************/
+
+#ifndef __ANT_OS_H
+#define __ANT_OS_H
+
+#include <pthread.h>
+#include "ant_types.h"
+#include "ant_native.h"
+
+// The configuration of a receive thread
+typedef struct
+{
+ //The function to call back with received data
+ ANTNativeANTEventCb pfRxCallback;
+
+ //The function to call back with state changes
+ ANTNativeANTStateCb pfStateCallback;
+
+ //The thread object itself
+ pthread_t thread;
+
+} ANTHCIRxParams;
+
+extern ANTHCIRxParams RxParams;
+
+//The message receive thread
+void* ANTHCIRxThread(void* pvHCIDevice);
+
+#endif /* __ANT_OS_H */
+