Stima V4 Slave RAIN  4.2
IIS328DQ_Data_Generation

This section group all the functions concerning data generation. More...

Functions

int32_t Accelerometer::iis328dq_axis_x_data_set (uint8_t val)
 X axis enable/disable.[set]. More...
 
int32_t Accelerometer::iis328dq_axis_x_data_get (uint8_t *val)
 X axis enable/disable.[get]. More...
 
int32_t Accelerometer::iis328dq_axis_y_data_set (uint8_t val)
 Y axis enable/disable.[set]. More...
 
int32_t Accelerometer::iis328dq_axis_y_data_get (uint8_t *val)
 Y axis enable/disable.[get]. More...
 
int32_t Accelerometer::iis328dq_axis_z_data_set (uint8_t val)
 Z axis enable/disable.[set]. More...
 
int32_t Accelerometer::iis328dq_axis_z_data_get (uint8_t *val)
 Z axis enable/disable.[get]. More...
 
int32_t Accelerometer::iis328dq_data_rate_set (iis328dq_dr_t val)
 Accelerometer data rate selection.[set]. More...
 
int32_t Accelerometer::iis328dq_data_rate_get (iis328dq_dr_t *val)
 Accelerometer data rate selection.[get]. More...
 
int32_t Accelerometer::iis328dq_reference_mode_set (iis328dq_hpm_t val)
 High pass filter mode selection.[set]. More...
 
int32_t Accelerometer::iis328dq_reference_mode_get (iis328dq_hpm_t *val)
 High pass filter mode selection.[get]. More...
 
int32_t Accelerometer::iis328dq_full_scale_set (iis328dq_fs_t val)
 Accelerometer full-scale selection.[set]. More...
 
int32_t Accelerometer::iis328dq_full_scale_get (iis328dq_fs_t *val)
 Accelerometer full-scale selection.[get]. More...
 
int32_t Accelerometer::iis328dq_block_data_update_set (uint8_t val)
 Block data update.[set]. More...
 
int32_t Accelerometer::iis328dq_block_data_update_get (uint8_t *val)
 Block data update.[get]. More...
 
int32_t Accelerometer::iis328dq_status_reg_get (iis328dq_status_reg_t *val)
 The STATUS_REG register is read by the interface.[get]. More...
 
int32_t Accelerometer::iis328dq_flag_data_ready_get (uint8_t *val)
 Accelerometer new data available.[get]. More...
 

Detailed Description

This section group all the functions concerning data generation.

Function Documentation

◆ iis328dq_axis_x_data_get()

int32_t Accelerometer::iis328dq_axis_x_data_get ( uint8_t *  val)

X axis enable/disable.[get].

Parameters
valchange the values of xen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 243 of file accelerometer.cpp.

◆ iis328dq_axis_x_data_set()

int32_t Accelerometer::iis328dq_axis_x_data_set ( uint8_t  val)

X axis enable/disable.[set].

Parameters
valchange the values of xen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 222 of file accelerometer.cpp.

◆ iis328dq_axis_y_data_get()

int32_t Accelerometer::iis328dq_axis_y_data_get ( uint8_t *  val)

Y axis enable/disable.[get].

Parameters
valchange the values of yen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 279 of file accelerometer.cpp.

◆ iis328dq_axis_y_data_set()

int32_t Accelerometer::iis328dq_axis_y_data_set ( uint8_t  val)

Y axis enable/disable.[set].

Parameters
valchange the values of yen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 258 of file accelerometer.cpp.

◆ iis328dq_axis_z_data_get()

int32_t Accelerometer::iis328dq_axis_z_data_get ( uint8_t *  val)

Z axis enable/disable.[get].

Parameters
valchange the values of zen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 315 of file accelerometer.cpp.

◆ iis328dq_axis_z_data_set()

int32_t Accelerometer::iis328dq_axis_z_data_set ( uint8_t  val)

Z axis enable/disable.[set].

Parameters
valchange the values of zen in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 294 of file accelerometer.cpp.

◆ iis328dq_block_data_update_get()

int32_t Accelerometer::iis328dq_block_data_update_get ( uint8_t *  val)

Block data update.[get].

Parameters
valchange the values of bdu in reg CTRL_REG4
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 538 of file accelerometer.cpp.

◆ iis328dq_block_data_update_set()

int32_t Accelerometer::iis328dq_block_data_update_set ( uint8_t  val)

Block data update.[set].

Parameters
valchange the values of bdu in reg CTRL_REG4
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 517 of file accelerometer.cpp.

◆ iis328dq_data_rate_get()

int32_t Accelerometer::iis328dq_data_rate_get ( iis328dq_dr_t val)

Accelerometer data rate selection.[get].

Parameters
valGet the values of dr in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 352 of file accelerometer.cpp.

◆ iis328dq_data_rate_set()

int32_t Accelerometer::iis328dq_data_rate_set ( iis328dq_dr_t  val)

Accelerometer data rate selection.[set].

Parameters
valchange the values of dr in reg CTRL_REG1
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 330 of file accelerometer.cpp.

◆ iis328dq_flag_data_ready_get()

int32_t Accelerometer::iis328dq_flag_data_ready_get ( uint8_t *  val)

Accelerometer new data available.[get].

Parameters
valchange the values of zyxda in reg STATUS_REG
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 565 of file accelerometer.cpp.

◆ iis328dq_full_scale_get()

int32_t Accelerometer::iis328dq_full_scale_get ( iis328dq_fs_t val)

Accelerometer full-scale selection.[get].

Parameters
valGet the values of fs in reg CTRL_REG4
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 484 of file accelerometer.cpp.

◆ iis328dq_full_scale_set()

int32_t Accelerometer::iis328dq_full_scale_set ( iis328dq_fs_t  val)

Accelerometer full-scale selection.[set].

Parameters
valchange the values of fs in reg CTRL_REG4
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 463 of file accelerometer.cpp.

◆ iis328dq_reference_mode_get()

int32_t Accelerometer::iis328dq_reference_mode_get ( iis328dq_hpm_t val)

High pass filter mode selection.[get].

Parameters
valGet the values of hpm in reg CTRL_REG2
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 434 of file accelerometer.cpp.

◆ iis328dq_reference_mode_set()

int32_t Accelerometer::iis328dq_reference_mode_set ( iis328dq_hpm_t  val)

High pass filter mode selection.[set].

Parameters
valchange the values of hpm in reg CTRL_REG2
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 413 of file accelerometer.cpp.

◆ iis328dq_status_reg_get()

int32_t Accelerometer::iis328dq_status_reg_get ( iis328dq_status_reg_t val)

The STATUS_REG register is read by the interface.[get].

Parameters
valregisters STATUS_REG
Return values
Interfacestatus (MANDATORY: return 0 -> no Error)

Definition at line 553 of file accelerometer.cpp.