avr/shift_register/reg.h

17 lines
326 B
C

#ifndef __REG_H__
#define __REG_H__
typedef struct SHIFT_REGISTER {
gpio_t output;
gpio_t shift_clock;
gpio_t latch_clock;
} shift_register_t;
void shift_register_initialize(shift_register_t *reg);
void send_lsb(shift_register_t *reg, uint8_t byte);
void send_msb(shift_register_t *reg, uint8_t byte);
#endif