![]() |
ISSDK
1.7
IoT Sensing Software Development Kit
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | mcuDEVID_t |
This defines a record type to store the expected field values of the LPC device ID. More... | |
struct | sensorAccess_t |
This defines a record type to store the communication channel info and WHO_AM_I address/value for various Sensor Shields. More... | |
struct | ADSFlashRecord_t |
This defines a record type to store ADS results string in Flash memory. More... | |
Macros | |
#define | ADS_NO_WHO_AM_I (0xFFFF) |
#define | ADS_MAX_STRING_LENGTH (64) |
#define | ADS_FLASH_STRING_LENGTH (128) |
#define | ADS_NO_SHIELD_DETECTED (0xFFFFFFFF) |
#define | ADS_COOKIE_VALUE (0xDEADBEEF) |
Typedefs | |
typedef enum ADS_Status | ADS_Status_t |
This defines the return status. More... | |
typedef enum ADS_Channel | ADS_Channel_t |
This defines the allowed communications channels. More... | |
typedef enum ADS_Sensor | ADS_Sensor_t |
This defines the allowed communications channels. More... | |
Functions | |
void | BOARD_RunADS (const char *appName, char *boardString, char *shieldString, size_t bufferLength) |
The function to register Application Name and initialte ADS. More... | |
#define ADS_COOKIE_VALUE (0xDEADBEEF) |
Definition at line 53 of file auto_detection_service.h.
#define ADS_FLASH_STRING_LENGTH (128) |
Definition at line 51 of file auto_detection_service.h.
#define ADS_MAX_STRING_LENGTH (64) |
Definition at line 50 of file auto_detection_service.h.
#define ADS_NO_SHIELD_DETECTED (0xFFFFFFFF) |
Definition at line 52 of file auto_detection_service.h.
#define ADS_NO_WHO_AM_I (0xFFFF) |
Definition at line 49 of file auto_detection_service.h.
typedef enum ADS_Channel ADS_Channel_t |
This defines the allowed communications channels.
typedef enum ADS_Sensor ADS_Sensor_t |
This defines the allowed communications channels.
typedef enum ADS_Status ADS_Status_t |
This defines the return status.
enum ADS_Channel |
This defines the allowed communications channels.
Enumerator | |
---|---|
ADS_I2C_INT | |
ADS_I2C_EXT | |
ADS_SPI_DEV | |
ADS_I2C_INT | |
ADS_I2C_EXT | |
ADS_SPI_DEV | |
ADS_I2C_INT | |
ADS_I2C_EXT | |
ADS_SPI_DEV |
Definition at line 68 of file auto_detection_service.h.
enum ADS_FlashStatus_t |
This enumeration defines the ADS Flash storage status.
Definition at line 108 of file auto_detection_service.h.
enum ADS_Sensor |
This defines the allowed communications channels.
Definition at line 78 of file auto_detection_service.h.
enum ADS_Status |
This defines the return status.
Enumerator | |
---|---|
ADS_OK | |
ADS_FAIL | |
ADS_NULL | |
ADS_OK | |
ADS_FAIL | |
ADS_NULL | |
ADS_OK | |
ADS_FAIL | |
ADS_NULL |
Definition at line 58 of file auto_detection_service.h.
This enumeration defines the FRDM boards that ADS can detect.
Definition at line 98 of file auto_detection_service.h.
void BOARD_RunADS | ( | const char * | appName, |
char * | boardString, | ||
char * | shieldString, | ||
size_t | bufferLength | ||
) |
The function to register Application Name and initialte ADS.
The API will read the Application Name from the user and return the result string with the ADS detection results. It will also update the FLASH with the new results.
[in] | pAppName | - pointer to a buffer where the application name is placed. |
Definition at line 943 of file auto_detection_service.c.
References ADS_DetectFRDM(), ADS_DetectLPC(), ADS_DetectQN(), ADS_DetectShield(), ADS_FAIL, ADS_FLASH_RECORD_NO_CHANGE, ADS_FLASH_STRING_LENGTH, ADS_FlashCompare(), ADS_FlashUpdate(), ADS_OK, int32_t(), and status.
Referenced by main().