42 template <
typename interface
46 static unsigned char port_buffer_a, port_buffer_b;
48 static void port_flush_a(){
49 channel::transaction_out_n( &port_buffer, 1 );
60 static void set(
bool x ){
62 port_buffer |= ( 0x01 << p );
64 port_buffer &= ~ ( 0x01 << p );
84 static void set(
unsigned char x ){
90 typedef single_pin< 0 > pin_0;
93 typedef single_pin< 1 > pin_1;
96 typedef single_pin< 2 > pin_2;
99 typedef single_pin< 3 > pin_3;
102 typedef single_pin< 4 > pin_4;
105 typedef single_pin< 5 > pin_5;
108 typedef single_pin< 6 > pin_6;
111 typedef single_pin< 7 > pin_7;
115 template <
typename channel >
116 unsigned char hc595< channel >::port_buffer;