From: Tollef Fog Heen Date: Thu, 28 Jul 2011 15:07:03 +0000 (+0200) Subject: Add function prototypes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1a62c40853ac6f6e4ce9cef42c08faf1e6bfc75;p=gant Add function prototypes --- diff --git a/antdefs.h b/antdefs.h index 92bde76..d3fb6ba 100644 --- 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