![]() |
ISSDK
1.8
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 27 of file auto_detection_service.h.
Referenced by ADS_FlashCompare(), and ADS_FlashUpdate().
#define ADS_FLASH_STRING_LENGTH (128) |
Definition at line 25 of file auto_detection_service.h.
Referenced by BOARD_RunADS().
#define ADS_MAX_STRING_LENGTH (64) |
Definition at line 24 of file auto_detection_service.h.
Referenced by main().
#define ADS_NO_SHIELD_DETECTED (0xFFFFFFFF) |
Definition at line 26 of file auto_detection_service.h.
Referenced by ADS_DetectShield().
#define ADS_NO_WHO_AM_I (0xFFFF) |
Definition at line 23 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 42 of file auto_detection_service.h.
enum ADS_FlashStatus_t |
This enumeration defines the ADS Flash storage status.
Definition at line 83 of file auto_detection_service.h.
enum ADS_Sensor |
This defines the allowed communications channels.
Definition at line 52 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 32 of file auto_detection_service.h.
This enumeration defines the FRDM boards that ADS can detect.
Definition at line 72 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 917 of file auto_detection_service.c.