123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
-
- #ifndef __IDD_H
- #define __IDD_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include <stdint.h>
-
- typedef struct
- {
- uint16_t AmpliGain;
- uint16_t VddMin;
- uint16_t Shunt0Value;
- uint16_t Shunt1Value;
- uint16_t Shunt2Value;
- uint16_t Shunt3Value;
- uint16_t Shunt4Value;
- uint16_t Shunt0StabDelay;
- uint16_t Shunt1StabDelay;
- uint16_t Shunt2StabDelay;
- uint16_t Shunt3StabDelay;
- uint16_t Shunt4StabDelay;
- uint8_t ShuntNbOnBoard;
- uint8_t ShuntNbUsed;
- uint8_t VrefMeasurement;
- uint8_t Calibration;
- uint8_t PreDelayUnit;
- uint8_t PreDelayValue;
- uint8_t MeasureNb;
- uint8_t DeltaDelayUnit;
- uint8_t DeltaDelayValue;
- }IDD_ConfigTypeDef;
- typedef struct
- {
- void (*Init)(uint16_t);
- void (*DeInit)(uint16_t);
- uint16_t (*ReadID)(uint16_t);
- void (*Reset)(uint16_t);
- void (*LowPower)(uint16_t);
- void (*WakeUp)(uint16_t);
- void (*Start)(uint16_t);
- void (*Config)(uint16_t,IDD_ConfigTypeDef);
- void (*GetValue)(uint16_t, uint32_t *);
- void (*EnableIT)(uint16_t);
- void (*ClearIT)(uint16_t);
- uint8_t (*GetITStatus)(uint16_t);
- void (*DisableIT)(uint16_t);
- void (*ErrorEnableIT)(uint16_t);
- void (*ErrorClearIT)(uint16_t);
- uint8_t (*ErrorGetITStatus)(uint16_t);
- void (*ErrorDisableIT)(uint16_t);
- uint8_t (*ErrorGetSrc)(uint16_t);
- uint8_t (*ErrorGetCode)(uint16_t);
- }IDD_DrvTypeDef;
- #ifdef __cplusplus
- }
- #endif
- #endif
|