/*********************************************************************
 * FileName:        switches.h
 * Dependencies:    See INCLUDES section below
 * Processor:       PIC18
 * Compiler:        C18 2.30.01+
 * Company:         sprut
 * Copyright:       2012 Joerg Bredendiek (sprut)
 *
 *
 ********************************************************************/

#ifndef SWITCHES_H
#define SWITCHES_H

/** I N C L U D E S *************************************************/
#include "HardwareProfile.h"     

/*
Empfaenger	Futaba/Hitec	Graupner/JR		MPX/robbe	Sanwa
Kanal 1		Quer			Drossel			Quer		Hoehe
Kanal 2		Hoehe			Quer			Hoehe		Quer
Kanal 3		Drossel			Hoehe			Seite		Drossel
Kanal 4		Seite			Seite			Drossel		Seite	

HID_0	X-Achse		Querruder		Aileron
HID_1	Y-Achse		Hoehenruder		Elevator
HID_2	Z-Achse		Drossel			Throttle
HID_3	X-Achse		Seitenruder
*/


/** D E F I N I T I O N S *******************************************/
#define rcFutaba	0
#define rcGraupner	1
#define rcRobbe		2 
#define rcSanwa		3 

#define hidQuer		0 
#define hidHoehe	1
#define hidDrossel	2
#define hidSeite	3


/** E X T E R N     *************************************************/
extern	unsigned char		rcMarke;
extern	unsigned char		rcInvers;


/** P U B L I C  P R O T O T Y P E S ********************************/
void	Switches_Init(void);
unsigned char ModAxis(char index);
void	UP_Switches(void);

/** P R I V A T E  P R O T O T Y P E S ******************************/

#endif	// SWITCHES_H

/****  E N D E  *****************************************************/
