This is a part of the Kinetiszer project.

Dependents:   SoundEngine

hardware.h

Committer:
Clemo
Date:
2014-10-28
Revision:
0:5a419ba2726d

File content as of revision 0:5a419ba2726d:

#ifndef __HARDWARE_PORT_H__
#define __HARDWARE_PORT_H__


#define HIGH  (1)
#define LOW  (0)


void Init_Hardware(void);
void Hardware_Poll(void);
void Hardware_Let_Ctrl(byte shift, byte index, byte value);
byte Hardware_Get_Ctrl(byte shift, byte index);
byte Hardware_Get_Ctrl_Shift(void);
void Hardware_Let_Function(byte newfunc);
byte Hardware_Get_Function(void);
void Hardware_Let_Value(byte func, byte newval);
byte Hardware_Get_Value(byte func);
void Hard_Let_Shift(byte func, boolean newshift);
boolean Hard_Get_Shift(byte func);
void Hardware_LED_SetState(byte LEDnum, byte LEDstate);
void Hardware_LED_StartFlash(byte LEDnum, byte FlashTimes);
void Hardware_BicolorLED_SetState(uint8_t led, uint8_t green, uint8_t red);


#endif // __HARDWARE_PORT_H__