-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtests.h
56 lines (41 loc) · 1.78 KB
/
tests.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Name: tests.h
* Desc: CrawlerProc functionality test suite
* Date: 2011-04-16
* Author: AMH
*/
#include "queue.h"
#include "payload_queue.h"
#define RX_QUEUE_LEN 6
#define TX_QUEUE_LEN 12
#define READ_CAM_REG 1
#define WRITE_CAM_REG 2
#define FUN_Q_LEN 12
#ifndef __TESTS_H
#define __TESTS_H
extern volatile PayQueue rx_pay_queue;
extern unsigned char argument, regaddr, regvalue;
extern unsigned int i, j, rowcnt, imcnt;
extern volatile Queue fun_queue;
// A function pointer type definition for all testing functions
// All testing functions must take 3 char args and one char array
typedef unsigned char (*test_function)(unsigned char, unsigned char,\
unsigned char, unsigned char*);
unsigned char test_radio(unsigned char type, unsigned char status,\
unsigned char length, unsigned char* data);
unsigned char test_gyro(unsigned char type, unsigned char status,\
unsigned char length, unsigned char* data);
unsigned char test_accel(unsigned char type, unsigned char status,\
unsigned char length, unsigned char* data);
unsigned char test_dflash(unsigned char type, unsigned char status,\
unsigned char length, unsigned char* data);
unsigned char test_motor(unsigned char type, unsigned char status, \
unsigned char length, unsigned char* data);
unsigned char test_sma(unsigned char type, unsigned char status, \
unsigned char length, unsigned char* data);
unsigned char set_motor_direction(unsigned char chan_num, unsigned char\
direction);
extern unsigned char argument, regaddr, regvalue;
extern unsigned int i, j, rowcnt, imcnt;
extern volatile Queue fun_queue;
#endif