Eyebot 7: eyebot/include/types.h File Reference

Eyebot 7 7.17 A Hardware API to control various hardware

- Main Page
- Functions
- Types
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs
types.h File Reference

Defines types used for the EyeBot 7. More...

## Data Structures
struct | TASK
| Structure defining a TASK item. More...

## Macros
#define | IOBOARD 1
#define | VEHICLE 1
#define | PLATFORM 2
#define | WALKER 3
#define | HDT_FILE "/home/pi/eyebot/bin/hdt.txt"
Resolution
Available resolutions for CAM and IP functions
#define | QQVGA 0
#define | QVGA 1
#define | VGA 2
#define | CAM1MP 3
#define | CAMHD 4
#define | CAM5MP 5
#define | CUSTOM 10
Colours
The available predefined RGB colours
#define | RED 0xFF0000
#define | GREEN 0x00FF00
#define | BLUE 0x0000FF
#define | WHITE 0xFFFFFF
#define | GRAY 0x808080
#define | BLACK 0x000000
#define | SILVER 0xC0C0C0
#define | LIGHTGRAY 0xD3D3D3
#define | DARKGRAY 0xA9A9A9
#define | NAVY 0x000080
#define | CYAN 0x00EEEE
#define | TEAL 0x008080
#define | MAGENTA 0xFF00FF
#define | PURPLE 0x800080
#define | MAROON 0x800000
#define | YELLOW 0xFFFF00
#define | OLIVE 0x9ACD32
#define | ORANGE 0xFFA500
Keys
Pre-defined key constants - usable for standard & region map
#define | ANYKEY 0xFFFFFFFF
#define | NOKEY 0x00000000
#define | KEY1 0x00000001
#define | KEY2 0x00000002
#define | KEY3 0x00000004
#define | KEY4 0x00000008
#define | KEY_ESCAPE 0x80000000
#define | KEY_LISTTL 0x40000000
#define | KEY_LISTUP 0x20000000
#define | KEY_LISTDN 0x10000000
#define | KEY_LIST1 0x00000010
#define | KEY_LIST2 0x00000020
#define | KEY_LIST3 0x00000040
#define | KEY_LIST4 0x00000080
#define | KEY_LIST5 0x00000100
#define | KEY_LIST6 0x00000200
#define | KEY_LIST7 0x00000400
#define | KEY_LIST8 0x00000800
#define | KEY_INVALID 0xFFFFFFFF
#define | KEY_GOIDLE 1
#define | KEY_NOIDLE 0
#define | KEY_STATE -1
#define | KEY_GOIDLE 1
#define | KEY_NOIDLE 0
#define | KEY_STATE -1
#define | KEYTM_UNKNOWN 0x00
#define | KEYTM_CLASSIC 0x01
#define | KEYTM_STANDARD 0x02
#define | KEYTM_REGIONS 0x03
#define | KEYTM_LISTMENU 0x04
IR_Keys
Pre-defined IR key constants
#define | IRTV_1 '1'
#define | IRTV_2 '2'
#define | IRTV_3 '3'
#define | IRTV_4 '4'
#define | IRTV_5 '5'
#define | IRTV_6 '6'
#define | IRTV_7 '7'
#define | IRTV_8 '8'
#define | IRTV_9 '9'
#define | IRTV_0 '0'
#define | IRTV_RED 'R'
#define | IRTV_GREEN 'G'
#define | IRTV_YELLOW 'Y'
#define | IRTV_BLUE 'B'
#define | IRTV_LEFT 'L'
#define | IRTV_RIGHT '>'
#define | IRTV_UP 'U'
#define | IRTV_DOWN 'D'
#define | IRTV_OK 'O'
#define | IRTV_POWER 'P'
Fonts
Pre-defined Fonts available
#define | HELVETICA 0
#define | TIMES 1
#define | COURIER 2
Styles
Pre-defined Font styles available
#define | NORMAL 0
#define | BOLD 1
#define | ITALICS 2

## Typedefs
typedef int | COLOR
typedef char | BYTE
typedef int | TIMER

## QQVGA
Constants defined for QQVGA (160x120)
#define | QQVGA_X 160
#define | QQVGA_Y 120
#define | QQVGA_SIZE (QQVGA_X*QQVGA_Y*3)
#define | QQVGA_PIXELS (QQVGA_X*QQVGA_Y)
typedef BYTE | QQVGAcol[QQVGA_SIZE]
typedef BYTE | QQVGAgray[QQVGA_PIXELS]

## QVGA
Constants defined for QVGA (320x240)
#define | QVGA_X 320
#define | QVGA_Y 240
#define | QVGA_SIZE (QVGA_X*QVGA_Y*3)
#define | QVGA_PIXELS (QVGA_X*QVGA_Y)
typedef BYTE | QVGAcol[QVGA_SIZE]
typedef BYTE | QVGAgray[QVGA_PIXELS]

## VGA
Constants defined for VGA (640x480)
#define | VGA_X 640
#define | VGA_Y 480
#define | VGA_SIZE (VGA_X*VGA_Y*3)
#define | VGA_PIXELS (VGA_X*VGA_Y)
typedef BYTE | VGAcol[VGA_SIZE]
typedef BYTE | VGAgray[VGA_PIXELS]

## CAM1MP
Constants defined for CAM1MP (1296x730)
#define | CAM1MP_X 1296
#define | CAM1MP_Y 730
#define | CAM1MP_SIZE (CAM1MP_X*CAM1MP_Y*3)
#define | CAM1MP_PIXELS (CAM1MP_X*CAM1MP_Y)
typedef BYTE | CAM1MPcol[CAM1MP_SIZE]
typedef BYTE | CAM1MPgray[CAM1MP_PIXELS]

## CAMHD
Constants defined for CAMHD (1920x1080)
#define | CAMHD_X 1920
#define | CAMHD_Y 1080
#define | CAMHD_SIZE (CAMHD_X*CAMHD_Y*3)
#define | CAMHD_PIXELS (CAMHD_X*CAMHD_Y)
typedef BYTE | CAMHDcol[CAMHD_SIZE]
typedef BYTE | CAMHDgray[CAMHD_PIXELS]

## CAM5MP
Constants defined for CAM5MP (2592x1944)
#define | CAM5MP_X 2592
#define | CAM5MP_Y 1944
#define | CAM5MP_SIZE (CAM5MP_X*CAM5MP_Y*3)
#define | CAM5MP_PIXELS (CAM5MP_X*CAM5MP_Y)
typedef BYTE | CAM5MPcol[CAM5MP_SIZE]
typedef BYTE | CAM5MPgray[CAM5MP_PIXELS]

## Detailed Description

Defines types used for the EyeBot 7.

Author
  Remi Keat & Marcus Pham

## Macro Definition Documentation

#define ANYKEY 0xFFFFFFFF

#define BLACK 0x000000

#define BLUE 0x0000FF

#define BOLD 1

#define CAM1MP 3

#define CAM1MP_PIXELS (CAM1MP_X*CAM1MP_Y)

#define CAM1MP_SIZE (CAM1MP_X*CAM1MP_Y*3)

#define CAM1MP_X 1296

#define CAM1MP_Y 730

#define CAM5MP 5

#define CAM5MP_PIXELS (CAM5MP_X*CAM5MP_Y)

#define CAM5MP_SIZE (CAM5MP_X*CAM5MP_Y*3)

#define CAM5MP_X 2592

#define CAM5MP_Y 1944

#define CAMHD 4

#define CAMHD_PIXELS (CAMHD_X*CAMHD_Y)

#define CAMHD_SIZE (CAMHD_X*CAMHD_Y*3)

#define CAMHD_X 1920

#define CAMHD_Y 1080

#define COURIER 2

#define CUSTOM 10

#define CYAN 0x00EEEE

#define DARKGRAY 0xA9A9A9

#define GRAY 0x808080

#define GREEN 0x00FF00

#define HDT_FILE "/home/pi/eyebot/bin/hdt.txt"

#define HELVETICA 0

#define IOBOARD 1

#define IRTV_0 '0'

#define IRTV_1 '1'

#define IRTV_2 '2'

#define IRTV_3 '3'

#define IRTV_4 '4'

#define IRTV_5 '5'

#define IRTV_6 '6'

#define IRTV_7 '7'

#define IRTV_8 '8'

#define IRTV_9 '9'

#define IRTV_BLUE 'B'

#define IRTV_DOWN 'D'

#define IRTV_GREEN 'G'

#define IRTV_LEFT 'L'

#define IRTV_OK 'O'

#define IRTV_POWER 'P'

#define IRTV_RED 'R'

#define IRTV_RIGHT '>'

#define IRTV_UP 'U'

#define IRTV_YELLOW 'Y'

#define ITALICS 2

#define KEY1 0x00000001

#define KEY2 0x00000002

#define KEY3 0x00000004

#define KEY4 0x00000008

#define KEY_ESCAPE 0x80000000

#define KEY_GOIDLE 1

#define KEY_INVALID 0xFFFFFFFF

#define KEY_LIST1 0x00000010

#define KEY_LIST2 0x00000020

#define KEY_LIST3 0x00000040

#define KEY_LIST4 0x00000080

#define KEY_LIST5 0x00000100

#define KEY_LIST6 0x00000200

#define KEY_LIST7 0x00000400

#define KEY_LIST8 0x00000800

#define KEY_LISTDN 0x10000000

#define KEY_LISTTL 0x40000000

#define KEY_LISTUP 0x20000000

#define KEY_NOIDLE 0

#define KEY_STATE -1

#define KEYTM_CLASSIC 0x01

#define KEYTM_LISTMENU 0x04

#define KEYTM_REGIONS 0x03

#define KEYTM_STANDARD 0x02

#define KEYTM_UNKNOWN 0x00

#define LIGHTGRAY 0xD3D3D3

#define MAGENTA 0xFF00FF

#define MAROON 0x800000

#define NAVY 0x000080

#define NOKEY 0x00000000

#define NORMAL 0

#define OLIVE 0x9ACD32

#define ORANGE 0xFFA500

#define PLATFORM 2

#define PURPLE 0x800080

#define QQVGA 0

#define QQVGA_PIXELS (QQVGA_X*QQVGA_Y)

#define QQVGA_SIZE (QQVGA_X*QQVGA_Y*3)

#define QQVGA_X 160

#define QQVGA_Y 120

#define QVGA 1

#define QVGA_PIXELS (QVGA_X*QVGA_Y)

#define QVGA_SIZE (QVGA_X*QVGA_Y*3)

#define QVGA_X 320

#define QVGA_Y 240

#define RED 0xFF0000

#define SILVER 0xC0C0C0

#define TEAL 0x008080

#define TIMES 1

#define VEHICLE 1

#define VGA 2

#define VGA_PIXELS (VGA_X*VGA_Y)

#define VGA_SIZE (VGA_X*VGA_Y*3)

#define VGA_X 640

#define VGA_Y 480

#define WALKER 3

#define WHITE 0xFFFFFF

#define YELLOW 0xFFFF00

## Typedef Documentation

typedef char BYTE

typedef BYTE CAM1MPcol[CAM1MP_SIZE]

typedef BYTE CAM1MPgray[CAM1MP_PIXELS]

typedef BYTE CAM5MPcol[CAM5MP_SIZE]

typedef BYTE CAM5MPgray[CAM5MP_PIXELS]

typedef BYTE CAMHDcol[CAMHD_SIZE]

typedef BYTE CAMHDgray[CAMHD_PIXELS]

typedef int COLOR

typedef BYTE QQVGAcol[QQVGA_SIZE]

typedef BYTE QQVGAgray[QQVGA_PIXELS]

typedef BYTE QVGAcol[QVGA_SIZE]

typedef BYTE QVGAgray[QVGA_PIXELS]

typedef int TIMER

typedef BYTE VGAcol[VGA_SIZE]

typedef BYTE VGAgray[VGA_PIXELS]