2022-06-26 03:35:14 +00:00
|
|
|
|
|
|
|
#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);
|
2022-06-26 03:35:14 +00:00
|
|
|
|
|
|
|
#endif
|