41 #ifndef AUTO_DETECTION_SERVICE_H_ 42 #define AUTO_DETECTION_SERVICE_H_ 49 #define ADS_NO_WHO_AM_I (0xFFFF) // Special value if sensor doesn't have WHO_AM_I register. 50 #define ADS_MAX_STRING_LENGTH (64) // Maximum length for sub-strings. 51 #define ADS_FLASH_STRING_LENGTH (128) // Maximum length of flash string. 52 #define ADS_NO_SHIELD_DETECTED (0xFFFFFFFF) 53 #define ADS_COOKIE_VALUE (0xDEADBEEF) 134 uint32_t whoAmIValue;
164 #endif // AUTO_DETECTION_SERVICE_H_
enum ADS_Sensor ADS_Sensor_t
This defines the allowed communications channels.
enum ADS_Channel ADS_Channel_t
This defines the allowed communications channels.
char shieldString[ADS_MAX_STRING_LENGTH]
ADS_SupportedBoards_t
This enumeration defines the FRDM boards that ADS can detect.
ADS_Channel
This defines the allowed communications channels.
char boardString[ADS_MAX_STRING_LENGTH]
This defines a record type to store ADS results string in Flash memory.
ADS_Sensor
This defines the allowed communications channels.
This defines a record type to store the communication channel info and WHO_AM_I address/value for var...
ADS_Status
This defines the return status.
ADS_FlashStatus_t
This enumeration defines the ADS Flash storage status.
enum ADS_Status ADS_Status_t
This defines the return status.
#define ADS_FLASH_STRING_LENGTH
This defines a record type to store the expected field values of the LPC device ID.
void BOARD_RunADS(const char *appName, char *boardString, char *shieldString, size_t bufferLength)
The function to register Application Name and initialte ADS.