no-OS
dummy_example.h
Go to the documentation of this file.
1 /***************************************************************************/
39 #ifndef __DUMMY_EXAMPLE_H__
40 #define __DUMMY_EXAMPLE_H__
41 
42 /******************************************************************************/
43 /***************************** Include Files **********************************/
44 /******************************************************************************/
45 
46 /******************************************************************************/
47 /************************ Functions Declarations ******************************/
48 /******************************************************************************/
49 int dummy_example_main();
50 
51 #endif /* __DUMMY_EXAMPLE_H__ */
adt7420_remove
int32_t adt7420_remove(struct adt7420_dev *dev)
Free the resources allocated by adt7420_init().
Definition: adt7420.c:236
dummy_example.h
DUMMY example header for eval-adxl367z project.
adt7420_init
int32_t adt7420_init(struct adt7420_dev **device, struct adt7420_init_param init_param)
Initializes the communication peripheral and checks if the device is present.
Definition: adt7420.c:174
ADT7420_13BIT_DIV
#define ADT7420_13BIT_DIV
Definition: adt7420.h:107
adxl355_get_temp
int adxl355_get_temp(struct adxl355_dev *dev, struct adxl355_frac_repr *temp)
Reads the raw temperature data and converts it to millidegrees Celsius.
Definition: adxl355.c:629
adxl367_read_converted_fifo
int adxl367_read_converted_fifo(struct adxl367_dev *dev, struct adxl367_fractional_val *x, struct adxl367_fractional_val *y, struct adxl367_fractional_val *z, struct adxl367_fractional_val *temp_adc, uint16_t *entries)
Reads converted values from FIFO. If, after setting FIFO mode, any of x, y, z, temp or adc aren't sel...
Definition: adxl367.c:1128
adxl367_temp_read_en
int adxl367_temp_read_en(struct adxl367_dev *dev, bool enable)
Enables temperature reading.
Definition: adxl367.c:650
adxl355_get_fifo_data
int adxl355_get_fifo_data(struct adxl355_dev *dev, uint8_t *fifo_entries, struct adxl355_frac_repr *x, struct adxl355_frac_repr *y, struct adxl355_frac_repr *z)
Reads fifo data and returns the values converted in m/s^2.
Definition: adxl355.c:771
ad74413r_clear_errors
int ad74413r_clear_errors(struct ad74413r_desc *desc)
Clear the ALERT_STATUS register.
Definition: ad74413r.c:283
adxl367_fractional_val::integer
int64_t integer
Definition: adxl367.h:422
adxl355_set_odr_lpf
int adxl355_set_odr_lpf(struct adxl355_dev *dev, enum adxl355_odr_lpf odr_lpf_val)
Writes the low-pass filter settings.
Definition: adxl355.c:390
adxl355_sts_reg_flags
Definition: adxl355.h:266
AD74413R_CH_C
#define AD74413R_CH_C
Definition: ad74413r.h:50
_adxl355_sts_reg_flags::FIFO_FULL
uint8_t FIFO_FULL
Definition: adxl355.h:259
ad74413r_init_param
Initialization parameter for the device descriptor.
Definition: ad74413r.h:292
ad74413r_init
int ad74413r_init(struct ad74413r_desc **desc, struct ad74413r_init_param *init_param)
Initialize the device structure.
Definition: ad74413r.c:999
adt7420_reg_read
int adt7420_reg_read(struct adt7420_dev *dev, uint8_t register_address, uint16_t *data)
Reads the value of a register.
Definition: adt7420.c:80
_adxl355_sts_reg_flags::FIFO_OVR
uint8_t FIFO_OVR
Definition: adxl355.h:260
adxl355_get_sts_reg
int adxl355_get_sts_reg(struct adxl355_dev *dev, union adxl355_sts_reg_flags *status_flags)
Reads the status register value.
Definition: adxl355.c:665
ADXL367_FIFO_FORMAT_XYZT
@ ADXL367_FIFO_FORMAT_XYZT
Definition: adxl367.h:363
ad74413r_set_threshold
int ad74413r_set_threshold(struct ad74413r_desc *desc, uint32_t ch, uint32_t threshold)
Set the threshold, for which a signal would be considered high, when the ADC is running in digital in...
Definition: ad74413r.c:822
dummy_example.h
DUMMY example header for ad719x project.
adt7420_get_temperature
float adt7420_get_temperature(struct adt7420_dev *dev)
Reads the temperature data and converts it to Celsius degrees.
Definition: adt7420.c:342
no_os_delay.h
Header file of Delay functions.
AD74413R_CH_D
#define AD74413R_CH_D
Definition: ad74413r.h:51
adt7420_dev::resolution_setting
uint8_t resolution_setting
Definition: adt7420.h:153
ad74413r_decimal
ADC value format.
Definition: ad74413r.h:300
ad74413r_get_live
int ad74413r_get_live(struct ad74413r_desc *desc, union ad74413r_live_status *status)
Read the live status bits.
Definition: ad74413r.c:897
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:99
ad719x_init
int ad719x_init(struct ad719x_dev **device, struct ad719x_init_param init_param)
Initializes the communication peripheral and the initial Values for AD719X Board and resets the devic...
Definition: ad719x.c:63
ADT7420_REG_T_HIGH_LSB
#define ADT7420_REG_T_HIGH_LSB
Definition: adt7420.h:82
ad74413r_get_temp
int ad74413r_get_temp(struct ad74413r_desc *desc, uint32_t ch, uint16_t *temp)
Read the die's temperature from the diagnostic register.
Definition: ad74413r.c:671
ADT7420_16BIT_NEG
#define ADT7420_16BIT_NEG
Definition: adt7420.h:102
adt7420_reset
int32_t adt7420_reset(struct adt7420_dev *dev)
Resets the SPI or I2C inteface for the ADT7420/ADT7320.
Definition: adt7420.c:312
adxl355.h
Header file of ADXL355 Driver.
no_os_print_log.h
Print messages helpers.
adxl355_soft_reset
int adxl355_soft_reset(struct adxl355_dev *dev)
Performs a soft reset of the device.
Definition: adxl355.c:298
adxl367_dev
ADXL367 Device structure.
Definition: adxl367.h:430
_adxl355_sts_reg_flags::Activity
uint8_t Activity
Definition: adxl355.h:261
ad74413r_decimal::decimal
uint32_t decimal
Definition: ad74413r.h:302
adxl367_set_output_rate
int adxl367_set_output_rate(struct adxl367_dev *dev, enum adxl367_odr odr)
Selects the Output Data Rate of the device.
Definition: adxl367.c:481
adxl367_fractional_val::fractional
int32_t fractional
Definition: adxl367.h:423
ad74413r_live_status
Used to store the live status bit fields.
Definition: ad74413r.h:336
AD74413R_VOLTAGE_OUT
@ AD74413R_VOLTAGE_OUT
Definition: ad74413r.h:191
adxl355_frac_repr::integer
int64_t integer
Definition: adxl355.h:284
ad719x_temperature_read
int ad719x_temperature_read(struct ad719x_dev *dev, float *temp)
Read data from temperature sensor and converts it to Celsius degrees.
Definition: ad719x.c:695
_ad74413r_live_status::VI_ERR_A
uint8_t VI_ERR_A
Definition: ad74413r.h:317
ad74413r_remove
int ad74413r_remove(struct ad74413r_desc *desc)
Free the device descriptor.
Definition: ad74413r.c:1049
adxl355_dev
ADXL355 Device structure.
Definition: adxl355.h:299
dummy_example.h
DUMMY example header for ad74413r project.
ad74413r_set_diag
int ad74413r_set_diag(struct ad74413r_desc *desc, uint32_t ch, enum ad74413r_diag_mode diag_code)
Set which diagnostic value to be loaded in the DIAG_RESULT register.
Definition: ad74413r.c:711
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Wait until msecs milliseconds passed.
Definition: aducm3029_delay.c:132
adxl367_init
int adxl367_init(struct adxl367_dev **device, struct adxl367_init_param init_param)
Initializes communication with the device and checks if the part is present by reading the device id.
Definition: adxl367.c:69
ADT7420_16BIT_DIV
#define ADT7420_16BIT_DIV
Definition: adt7420.h:104
ad74413r_decimal::integer
int64_t integer
Definition: ad74413r.h:301
_adxl355_sts_reg_flags::DATA_RDY
uint8_t DATA_RDY
Definition: adxl355.h:258
ADT7420_REG_T_LOW_MSB
#define ADT7420_REG_T_LOW_MSB
Definition: adt7420.h:83
adxl355_get_xyz
int adxl355_get_xyz(struct adxl355_dev *dev, struct adxl355_frac_repr *x, struct adxl355_frac_repr *y, struct adxl355_frac_repr *z)
Reads the raw output data of each axis and converts it to g.
Definition: adxl355.c:575
ad719x_continuous_read_avg
int ad719x_continuous_read_avg(struct ad719x_dev *dev, uint8_t sample_number, uint32_t *samples_avg)
Returns the average of several conversion results.
Definition: ad719x.c:654
ADXL367_OP_MEASURE
@ ADXL367_OP_MEASURE
Definition: adxl367.h:312
adt7420_user_init
struct adt7420_init_param adt7420_user_init
Definition: common_data.c:67
ADT7420_REG_HIST
#define ADT7420_REG_HIST
Definition: adt7420.h:87
ad74413r_desc
AD74413r device descriptor.
Definition: ad74413r.h:344
adxl367_self_test
int adxl367_self_test(struct adxl367_dev *dev)
Performs self test.
Definition: adxl367.c:163
_ad74413r_live_status::VI_ERR_D
uint8_t VI_ERR_D
Definition: ad74413r.h:320
ADT7420_13BIT_NEG
#define ADT7420_13BIT_NEG
Definition: adt7420.h:105
ad74413r.h
Header file of AD74413r Driver.
AD74413R_DIGITAL_INPUT
@ AD74413R_DIGITAL_INPUT
Definition: ad74413r.h:197
ad74413r_live_status::status_bits
struct _ad74413r_live_status status_bits
Definition: ad74413r.h:337
ad74413r_set_gpo_config
int ad74413r_set_gpo_config(struct ad74413r_desc *desc, uint32_t ch, enum ad74413r_gpo_select config)
Set the GPO operation mode.
Definition: ad74413r.c:805
AD74412R
@ AD74412R
Definition: ad74413r.h:172
adxl367_fractional_val
Data format in which the values are converted.
Definition: adxl367.h:421
ADT7420_REG_T_LOW_LSB
#define ADT7420_REG_T_LOW_LSB
Definition: adt7420.h:84
AD74413R_CH_A
#define AD74413R_CH_A
Definition: ad74413r.h:48
adxl355_sts_reg_flags::fields
struct _adxl355_sts_reg_flags fields
Definition: adxl355.h:267
adxl355_frac_repr
Definition: adxl355.h:283
AD74413R_CH_B
#define AD74413R_CH_B
Definition: ad74413r.h:49
ADT7420_REG_T_HIGH_MSB
#define ADT7420_REG_T_HIGH_MSB
Definition: adt7420.h:81
ad74413r_adc_get_value
int ad74413r_adc_get_value(struct ad74413r_desc *desc, uint32_t ch, struct ad74413r_decimal *val)
Get the ADC real value, according to the operation mode.
Definition: ad74413r.c:602
ad74413r_set_channel_function
int ad74413r_set_channel_function(struct ad74413r_desc *desc, uint32_t ch, enum ad74413r_op_mode ch_func)
Set the operation mode for a specific channel.
Definition: ad74413r.c:351
adt7420_reg_write
int adt7420_reg_write(struct adt7420_dev *dev, uint8_t register_address, uint32_t data)
Sets the value of a register SPI/I2C.
Definition: adt7420.c:130
ADXL355_ODR_3_906HZ
@ ADXL355_ODR_3_906HZ
Definition: adxl355.h:204
AD74413R_CURRENT_IN_EXT
@ AD74413R_CURRENT_IN_EXT
Definition: ad74413r.h:194
adxl367.h
Header file of ADXL367 Driver.
dummy_example_main
int dummy_example_main()
Dummy example main execution.
Definition: dummy_example.c:59
_adxl355_sts_reg_flags::NVM_BUSY
uint8_t NVM_BUSY
Definition: adxl355.h:262
ADXL355_MEAS_TEMP_ON_DRDY_OFF
@ ADXL355_MEAS_TEMP_ON_DRDY_OFF
Definition: adxl355.h:172
ad74413r_set_channel_dac_code
int ad74413r_set_channel_dac_code(struct ad74413r_desc *desc, uint32_t ch, uint16_t dac_code)
Set and load a code for the DAC on a specific channel.
Definition: ad74413r.c:692
ad74413r_dac_voltage_to_code
int ad74413r_dac_voltage_to_code(uint32_t mvolts, uint32_t *code)
Converts a millivolt value in the corresponding DAC 13 bit code.
Definition: ad74413r.c:141
AD74413R_DIAG_TEMP
@ AD74413R_DIAG_TEMP
Definition: ad74413r.h:239
ad74413r_init_param::chip_id
enum ad74413r_chip_id chip_id
Definition: ad74413r.h:293
dummy_example.h
DUMMY example header for adt7420-pmdz project.
dummy_example_main
int dummy_example_main()
Dummy example main execution.
Definition: dummy_example.c:59
ad74413r_set_diag_channel_enable
int ad74413r_set_diag_channel_enable(struct ad74413r_desc *desc, uint32_t ch, bool status)
Enable conversions on a diagnostic register.
Definition: ad74413r.c:413
dummy_example.h
DUMMY example header for eval-adxl355-pmdz project.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:96
adt7420_dev
Definition: adt7420.h:145
ad719x_convert_to_volts
float ad719x_convert_to_volts(struct ad719x_dev *dev, uint32_t raw_data, float v_ref)
Converts 24-bit raw data to milivolts.
Definition: ad719x.c:735
_ad74413r_live_status::VI_ERR_B
uint8_t VI_ERR_B
Definition: ad74413r.h:318
ADXL367_ODR_200HZ
@ ADXL367_ODR_200HZ
Definition: adxl367.h:334
adxl367_fifo_setup
int adxl367_fifo_setup(struct adxl367_dev *dev, enum adxl367_fifo_mode mode, enum adxl367_fifo_format format, uint8_t sets_nb)
Configures the FIFO feature. Uses ADXL367_14B_CHID read mode as default.
Definition: adxl367.c:1003
ADXL367_OLDEST_SAVED
@ ADXL367_OLDEST_SAVED
Definition: adxl367.h:344
ad74413r_gpo_get
int ad74413r_gpo_get(struct ad74413r_desc *desc, uint32_t ch, uint8_t *val)
Get the GPO value for a specific channel.
Definition: ad74413r.c:784
adxl355_init
int adxl355_init(struct adxl355_dev **device, struct adxl355_init_param init_param)
Initializes the communication peripheral and checks if the ADXL355 part is present.
Definition: adxl355.c:141
ad74413r_set_adc_channel_enable
int ad74413r_set_adc_channel_enable(struct ad74413r_desc *desc, uint32_t ch, bool status)
Enable/disable a specific ADC channel.
Definition: ad74413r.c:391
adxl367_set_power_mode
int adxl367_set_power_mode(struct adxl367_dev *dev, enum adxl367_op_mode mode)
Places the device into standby/measure mode.
Definition: adxl367.c:418
adxl355_set_op_mode
int adxl355_set_op_mode(struct adxl355_dev *dev, enum adxl355_op_mode op_mode)
Places the device into the given operation mode.
Definition: adxl355.c:256
ad74413r_spi_ip
struct no_os_spi_init_param ad74413r_spi_ip
Definition: common_data.c:59
ADT7420_16BIT_SIGN
#define ADT7420_16BIT_SIGN
Definition: adt7420.h:103
ad74413r_ip
struct ad74413r_init_param ad74413r_ip
Definition: common_data.c:91
AD74413R_GPO_CONFIG_COMP
@ AD74413R_GPO_CONFIG_COMP
Definition: ad74413r.h:230
ad7190_dev_ip
struct ad719x_init_param ad7190_dev_ip
Definition: common_data.c:70
adxl355_frac_repr::fractional
int32_t fractional
Definition: adxl355.h:285
adxl355_ip
struct adxl355_init_param adxl355_ip
Definition: common_data.c:91
_ad74413r_live_status::VI_ERR_C
uint8_t VI_ERR_C
Definition: ad74413r.h:319
AD74413R_VOLTAGE_IN
@ AD74413R_VOLTAGE_IN
Definition: ad74413r.h:193
ad719x_dev
Definition: ad719x.h:195
ADT7420_13BIT_SIGN
#define ADT7420_13BIT_SIGN
Definition: adt7420.h:106
adt7420.h
Header file of ADT7420 Driver.