]> err.no Git - gant/commitdiff
Add function prototypes
authorTollef Fog Heen <tfheen@err.no>
Thu, 28 Jul 2011 15:07:03 +0000 (17:07 +0200)
committerTollef Fog Heen <tfheen@err.no>
Thu, 28 Jul 2011 15:07:03 +0000 (17:07 +0200)
antdefs.h

index 92bde7697c6b5f3e6820cb989b73c85661222617..d3fb6baa378107043acf080de0144a52904c1e13 100644 (file)
--- a/antdefs.h
+++ b/antdefs.h
@@ -4,6 +4,27 @@ typedef unsigned char uchar;
 typedef uchar (*RESPONSE_FUNC)(uchar chan, uchar msgid);
 typedef uchar (*CHANNEL_EVENT_FUNC)(uchar chan, uchar event);
 
+uchar ANT_ResetSystem(void);
+ushort ANT_SendBurstTransferA(uchar chan, uchar *data, ushort numpkts);
+ushort ANT_SendBurstTransfer(uchar chan, uchar *data, ushort numpkts);
+uchar ANT_OpenChannel(uchar chan);
+uchar ANT_RequestMessage(uchar chan, uchar mesg);
+uchar ANT_SendAcknowledgedDataA(uchar chan, uchar *data); // ascii version
+uchar ANT_SendAcknowledgedData(uchar chan, uchar *data);
+uchar ANT_SetChannelId(uchar chan, ushort dev, uchar devtype, uchar manid);
+uchar ANT_SetChannelPeriod(uchar chan, ushort period);
+uchar ANT_SetChannelSearchTimeout(uchar chan, uchar timeout);
+uchar ANT_SetChannelRFFreq(uchar chan, uchar freq);
+void ANT_AssignResponseFunction(RESPONSE_FUNC rf, uchar* rbuf);
+void ANT_AssignChannelEventFunction(CHANNEL_EVENT_FUNC rf, uchar* rbuf);
+uchar ANT_Init(uchar devno);
+uchar ANT_SetNetworkKeya(uchar net, uchar *key);
+uchar ANT_AssignChannel(uchar chan, uchar chtype, uchar net);
+uchar ANT_SetSearchWaveform(uchar chan, ushort waveform);
+uchar ANTFS_OpenBeacon(void);
+uchar ANTFS_InitEEPROMDevice(ushort pagesize, uchar addrconfig);
+uchar ANTFS_File_Open(ushort fileno, uchar flags);
+
 #define EVENT_RX_ACKNOWLEDGED          0x9b
 #define EVENT_RX_BROADCAST             0x9a
 #define EVENT_RX_BURST_PACKET          0x9c