avr/shift_register/reg.h

17 lines
326 B
C
Raw Normal View History

#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);
2022-06-26 15:38:20 +00:00
void send_lsb(shift_register_t *reg, uint8_t byte);
void send_msb(shift_register_t *reg, uint8_t byte);
#endif