
//Register A
#define TUBE_PSU_FEEDBACK	     0 //PA0 Tube PSU feedback
#define ENABLE_TUBE_SUPPLY	1 << 1 //PA1 Verbindet PSU-Spannung mit Röhren PMOS! -> activ low
#define CURRENTSENSING_TUBE_6 	 2 //PA2 CURRENTSENSING_TUBE_6
#define CURRENTSENSING_TUBE_5 	 3 //PA3 CURRENTSENSING_TUBE_5
#define CURRENTSENSING_TUBE_4 	 4 //PA4 CURRENTSENSING_TUBE_4
#define CURRENTSENSING_TUBE_3 	 5 //PA5 CURRENTSENSING_TUBE_3
#define CURRENTSENSING_TUBE_2 	 6 //PA6 CURRENTSENSING_TUBE_2
#define CURRENTSENSING_TUBE_1 	 7 //PA7 CURRENTSENSING_TUBE_1


//Register B
#define STATUS_LED_B    1 << 0  //PB0 Status LED b
#define STATUS_LED_C    1 << 1  //PB1 Status LED c
#define DIP_1           1 << 2  //PB2 Dip-Schalter Stelle 1
#define DIP_2           1 << 3  //PB3 Dip-Schalter Stelle 2
#define DIP_3           1 << 4  //PB4 Dip-Schalter Stelle 3
#define MOSI            1 << 5  //PB5 MOSI
#define MISO            1 << 6  //PB6 MISO
#define CLK             1 << 7  //PB7 Clock

//Register C
#define SCL				1 << 0  //PC0 SCL
#define SDA 			1 << 1  //PC1 SDA
#define LATCH_SR        1 << 2  //PC2 Latch Shiftregister
#define ENABLE_SR       1 << 3  //PC3 Enable Shiftregister
#define DOT				1 << 4  //PC4 Doppelpunkt LEDs
#define BUTTON_A        1 << 5  //PC5 Button a
#define BUTTON_C        1 << 6  //PC6 Button c
#define ENABLE_TUBE_PSU 1 << 7  //PC7 Enable Tube PSU

//Register D
//								  PD0 RX
//								  PD1 TX	
#define ENCODER_A 		1 << 2  //PD2 Encoder A
#define ENCODER_PUSH    1 << 3  //PD3 Encoder Button
#define ENCODER_B		1 << 4 	//PD4 Encoder B
#define RESET_SR        1 << 5  //PD5 Reset Shift Register
#define BUTTON_B		1 << 6  //PD6 Button b
#define TUBE_LED        1 << 7  //PD7 Tube LED
