precision-converters-firmware
Enumerations | Functions | Variables
ad7124_console_app.h File Reference
#include "adi_console_menu.h"
Include dependency graph for ad7124_console_app.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  sensor_config_ids {
  AD7124_CONFIG_RESET ,
  AD7124_CONFIG_2WIRE_RTD ,
  AD7124_CONFIG_3WIRE_RTD ,
  AD7124_CONFIG_4WIRE_RTD ,
  AD7124_CONFIG_THERMOCOUPLE ,
  AD7124_CONFIG_THERMISTOR ,
  NUMBER_OF_SENSOR_CONFIGS
}
 

Functions

int32_t ad7124_app_initialize (uint8_t configID)
 Initialize the AD7124 device and the SPI port as required. More...
 

Variables

console_menu ad7124_main_menu
 

Enumeration Type Documentation

◆ sensor_config_ids

Enumerator
AD7124_CONFIG_RESET 
AD7124_CONFIG_2WIRE_RTD 
AD7124_CONFIG_3WIRE_RTD 
AD7124_CONFIG_4WIRE_RTD 
AD7124_CONFIG_THERMOCOUPLE 
AD7124_CONFIG_THERMISTOR 
NUMBER_OF_SENSOR_CONFIGS 

Function Documentation

◆ ad7124_app_initialize()

int32_t ad7124_app_initialize ( uint8_t  config_id)

Initialize the AD7124 device and the SPI port as required.

Parameters
configID-Configuration ID
Returns
0 in case of success, negative error code otherwise

This resets and then writes the default register map value to the device. A call to init the SPI port is made, but may not actually do very much, depending on the platform

Initialize the AD7124 device and the SPI port as required.

Parameters
config_id[in]-Register configuration to be load into device
Returns
0 in case of success, negative error code otherwise

This resets and then writes the default register map value to the device. A call to init the SPI port is made, but may not actually do very much, depending on the platform.

Here is the caller graph for this function:

Variable Documentation

◆ ad7124_main_menu

console_menu ad7124_main_menu
extern