roneos
Operating System for the r-one robot
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Groups
radio.h
Go to the documentation of this file.
1
7
//TODO: sjb2 is the real author...who is this?
8
9
#ifndef RADIO_H_
10
#define RADIO_H_
11
12
/******** Defines ********/
13
14
#define RADIO_MESSAGE_LENGTH_RAW 32
15
#define RADIO_COMMAND_HEADER_LENGTH 1
16
#define RADIO_COMMAND_MESSAGE_DATA_LENGTH (RADIO_MESSAGE_LENGTH_RAW - RADIO_COMMAND_HEADER_LENGTH)
17
18
19
/******** Structs ********/
20
27
//TODO Add field descriptions
28
typedef
struct
RadioMessageRaw
{
29
uint8 linkQuality;
30
uint32 timeStamp;
31
char
data[RADIO_MESSAGE_LENGTH_RAW];
32
}
RadioMessageRaw
;
33
34
42
//TODO Add field descriptions
43
typedef
struct
RadioMessageCommand
{
44
uint8 linkQuality;
45
uint32 timeStamp;
46
uint8 type;
47
char
data[RADIO_COMMAND_MESSAGE_DATA_LENGTH];
48
}
RadioMessageCommand
;
49
50
55
typedef
union
RadioMessage
{
56
RadioMessageRaw
raw
;
57
RadioMessageCommand
command
;
58
}
RadioMessage
;
59
60
/******** Functions ********/
61
67
void
radioInit(
void
);
68
69
75
void
radioIntEnable(
void
);
76
77
83
void
radioIntDisable(
void
);
84
85
86
#endif
/* RADIO_H_ */
InputOutput
radio.h
Generated on Tue Jun 11 2013 14:40:45 for roneos by
1.8.4