BDA4601.h 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * BDA4601.h
  3. *
  4. * Created on: 2019. 6. 28.
  5. * Author: parkyj
  6. */
  7. #ifndef BDA4601_H_
  8. #define BDA4601_H_
  9. #include "main.h"
  10. typedef struct{
  11. GPIO_TypeDef *CLK_PORT;
  12. uint16_t CLK_PIN;
  13. GPIO_TypeDef *SERIAL_IN_PORT;
  14. uint16_t SERIAL_IN_PIN;;
  15. GPIO_TypeDef *LE_PORT;
  16. uint16_t LE_PIN;
  17. }BDA4601_st;
  18. BDA4601_st BDA4601_1_8G_DL1;
  19. BDA4601_st BDA4601_1_8G_DL2;
  20. BDA4601_st BDA4601_1_8G_UL1;
  21. BDA4601_st BDA4601_1_8G_UL2;
  22. BDA4601_st BDA4601_1_8G_UL3;
  23. BDA4601_st BDA4601_1_8G_UL4;
  24. BDA4601_st BDA4601_2_1G_DL1;
  25. BDA4601_st BDA4601_2_1G_DL2;
  26. BDA4601_st BDA4601_2_1G_UL1;
  27. BDA4601_st BDA4601_2_1G_UL2;
  28. BDA4601_st BDA4601_2_1G_UL3;
  29. BDA4601_st BDA4601_2_1G_UL4;
  30. void BDA4601_atten_ctrl(BDA4601_st type ,uint8_t data);
  31. void BDA4601_Initialize(void);
  32. uint8_t BDA4601_Data_Calc(uint8_t val);
  33. //void BDA4601_Test(void);
  34. #endif /* BDA4601_H_ */