#ifndef INTERFACE595_H_
#define INTERFACE595_H_
#include "c.h"

#define hc595_ds(x)    				HAL_GPIO_WritePin(HC595_DS_GPIO_Port,HC595_DS_Pin,x)
#define hc595_sc(x)    				HAL_GPIO_WritePin(HC595_SC_GPIO_Port,HC595_SC_Pin,x)
#define hc595_sc_swing(x)			HAL_GPIO_WritePin(HC595_SC_SWING_GPIO_Port,HC595_SC_SWING_Pin,x)
#define hc595_sh(x)    				HAL_GPIO_WritePin(HC595_SH_GPIO_Port,HC595_SH_Pin,x)
#define read_hc595_ds  				HAL_GPIO_ReadPin(HC595_DS_GPIO_Port,HC595_DS_Pin)       //×xÈ¡ÒýÄ_ëŠÆ½

void ds_in_or_out(char a);
uint8_t Read_Ds();

#endif