ANT/Library for PIC24F
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[ANT]]
* Library for PIC24F [#vdabf719]
>
This page introduces ANT library for PIC24F series and i...
>
- ant.h &ref(ant.h);~
-- This is a header file, which lists the API functions f...
>
- ant.c &ref(ant.c);~
-- This is C source code for API functions, which enable ...
>
- uart.h &ref(uart.h);~
-- The is a header file listing the API that works with U...
>
- uart.c &ref(uart.c);~
-- C source code for API functions, which work with UART.~
>
To exchange the commands and results with ANT chip, ant.c...
At transmitting information, uart.c acceses via polling. ...
The pins, which are re-mappable, are assigned to RX and T...
At the example shown below, RTS of ANT module is assigned...
** Example [#f839f2b7]
>
#include <ant.h>
#include <uart.h>
#define DEVICE_NUMBER 31
#define MAX_BUFSIZE 32
#define ANT_CH 0
unsigned char buffer[MAX_BUFSIZE];
void OpenANT() {
// This function sets the communication parameter at 0c...
ANT_ResetSystem(); ...
ANT_AssignChannel( ANT_CH, ANT_Bidirectional_Slave, 0) ;...
ANT_SetChannelId( ANT_CH, DEVICE_NUMBER, 1, 1 ); ...
ANT_SetChannelPeriod_Hz( ANT_CH, 4 ); ...
ANT_SetChannelRFFreq( ANT_CH, 4 ); ...
ANT_OpenChannel( ANT_CH ); ...
return;
}
void main () {
int s;
// Input initializing code for hardware
// write down the I/O mode of each port and whether e...
//
uart_init( 38400, 0 ); // Initializing UAR...
// Caution) To comm...
OpenANT();
while(1) {
if ( s = BC_ANT_RecvPacket( buffer, MAX_BUFSIZE )...
// Processing data as it receives data from t...
// Writing down how to process as it receives...
}
}
}
* Revision History [#bbddba0e]
>
- 2013/02/01 This article is initially uploaded
End:
[[ANT]]
* Library for PIC24F [#vdabf719]
>
This page introduces ANT library for PIC24F series and i...
>
- ant.h &ref(ant.h);~
-- This is a header file, which lists the API functions f...
>
- ant.c &ref(ant.c);~
-- This is C source code for API functions, which enable ...
>
- uart.h &ref(uart.h);~
-- The is a header file listing the API that works with U...
>
- uart.c &ref(uart.c);~
-- C source code for API functions, which work with UART.~
>
To exchange the commands and results with ANT chip, ant.c...
At transmitting information, uart.c acceses via polling. ...
The pins, which are re-mappable, are assigned to RX and T...
At the example shown below, RTS of ANT module is assigned...
** Example [#f839f2b7]
>
#include <ant.h>
#include <uart.h>
#define DEVICE_NUMBER 31
#define MAX_BUFSIZE 32
#define ANT_CH 0
unsigned char buffer[MAX_BUFSIZE];
void OpenANT() {
// This function sets the communication parameter at 0c...
ANT_ResetSystem(); ...
ANT_AssignChannel( ANT_CH, ANT_Bidirectional_Slave, 0) ;...
ANT_SetChannelId( ANT_CH, DEVICE_NUMBER, 1, 1 ); ...
ANT_SetChannelPeriod_Hz( ANT_CH, 4 ); ...
ANT_SetChannelRFFreq( ANT_CH, 4 ); ...
ANT_OpenChannel( ANT_CH ); ...
return;
}
void main () {
int s;
// Input initializing code for hardware
// write down the I/O mode of each port and whether e...
//
uart_init( 38400, 0 ); // Initializing UAR...
// Caution) To comm...
OpenANT();
while(1) {
if ( s = BC_ANT_RecvPacket( buffer, MAX_BUFSIZE )...
// Processing data as it receives data from t...
// Writing down how to process as it receives...
}
}
}
* Revision History [#bbddba0e]
>
- 2013/02/01 This article is initially uploaded
Page: