26 lines
901 B
C
26 lines
901 B
C
![]() |
#ifndef __ADS1278_H
|
|||
|
#define __ADS1278_H
|
|||
|
|
|||
|
#include "./SYSTEM/sys/sys.h"
|
|||
|
#include "./SYSTEM/delay/delay.h"
|
|||
|
#include "./SYSTEM/ADS1278_SPI/ADS1278_SPI.h"
|
|||
|
#include "./SYSTEM/usart/usart.h"
|
|||
|
|
|||
|
/*DRDY<44><59><EFBFBD>ݾ<EFBFBD><DDBE><EFBFBD><EFBFBD>ź<EFBFBD>*/
|
|||
|
#define ADS1278_DRDY_Pin GPIO_PIN_11
|
|||
|
#define ADS1278_DRDY_GPIO_Port GPIOG
|
|||
|
#define ADS1278_DRDY_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG<50><47>ʱ<EFBFBD><CAB1>ʹ<EFBFBD><CAB9> */
|
|||
|
|
|||
|
/*FORMAT<41><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ź<EFBFBD>*/
|
|||
|
#define ADS1278_FORMAT_Pin GPIO_PIN_14
|
|||
|
#define ADS1278_FORMAT_GPIO_Port GPIOG
|
|||
|
#define ADS1278_FORMAT_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG<50><47>ʱ<EFBFBD><CAB1>ʹ<EFBFBD><CAB9> */
|
|||
|
|
|||
|
/*SYNCоƬͬ<C6AC><CDAC><EFBFBD><EFBFBD>λ<EFBFBD>ź<EFBFBD>*/
|
|||
|
#define ADS1278_SYNC_Pin GPIO_PIN_15
|
|||
|
#define ADS1278_SYNC_GPIO_Port GPIOG
|
|||
|
#define ADS1278_SYNC_GPIO_CLK_ENABLE() do{ __HAL_RCC_GPIOG_CLK_ENABLE(); }while(0) /* PG<50><47>ʱ<EFBFBD><CAB1>ʹ<EFBFBD><CAB9> */
|
|||
|
|
|||
|
void ADS1278_Init(void);
|
|||
|
void ADS1278_Reset(void);
|
|||
|
#endif
|