![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
This section group all the functions that manage interrupts. More...

Functions | |
| int32_t | lis2mdl_offset_int_conf_set (const stmdev_ctx_t *ctx, lis2mdl_int_on_dataoff_t val) |
| The interrupt block recognition checks data after/before the hard-iron correction to discover the interrupt.[set]. | |
| int32_t | lis2mdl_offset_int_conf_get (const stmdev_ctx_t *ctx, lis2mdl_int_on_dataoff_t *val) |
| The interrupt block recognition checks data after/before the hard-iron correction to discover the interrupt.[get]. | |
| int32_t | lis2mdl_drdy_on_pin_set (const stmdev_ctx_t *ctx, uint8_t val) |
| Data-ready signal on INT_DRDY pin.[set]. | |
| int32_t | lis2mdl_drdy_on_pin_get (const stmdev_ctx_t *ctx, uint8_t *val) |
| Data-ready signal on INT_DRDY pin.[get]. | |
| int32_t | lis2mdl_int_on_pin_set (const stmdev_ctx_t *ctx, uint8_t val) |
| Interrupt signal on INT_DRDY pin.[set]. | |
| int32_t | lis2mdl_int_on_pin_get (const stmdev_ctx_t *ctx, uint8_t *val) |
| Interrupt signal on INT_DRDY pin.[get]. | |
| int32_t | lis2mdl_int_gen_conf_set (const stmdev_ctx_t *ctx, lis2mdl_int_crtl_reg_t *val) |
| Interrupt generator configuration register.[set]. | |
| int32_t | lis2mdl_int_gen_conf_get (const stmdev_ctx_t *ctx, lis2mdl_int_crtl_reg_t *val) |
| Interrupt generator configuration register.[get]. | |
| int32_t | lis2mdl_int_gen_source_get (const stmdev_ctx_t *ctx, lis2mdl_int_source_reg_t *val) |
| Interrupt generator source register.[get]. | |
| int32_t | lis2mdl_int_gen_threshold_set (const stmdev_ctx_t *ctx, uint16_t val) |
| User-defined threshold value for xl interrupt event on generator. Data format is the same of output data raw: two’s complement with 1LSb = 1.5mG.[set]. | |
| int32_t | lis2mdl_int_gen_threshold_get (const stmdev_ctx_t *ctx, uint16_t *val) |
| User-defined threshold value for xl interrupt event on generator. Data format is the same of output data raw: two’s complement with 1LSb = 1.5mG.[get]. | |
This section group all the functions that manage interrupts.
| int32_t lis2mdl_drdy_on_pin_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Data-ready signal on INT_DRDY pin.[get].
| ctx | read / write interface definitions.(ptr) |
| val | change the values of drdy_on_pin in reg CFG_REG_C.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1077 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_c_t::drdy_on_pin, LIS2MDL_CFG_REG_C, and lis2mdl_read_reg().

| int32_t lis2mdl_drdy_on_pin_set | ( | const stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Data-ready signal on INT_DRDY pin.[set].
| ctx | read / write interface definitions.(ptr) |
| val | change the values of drdy_on_pin in reg CFG_REG_C |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1053 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_c_t::drdy_on_pin, LIS2MDL_CFG_REG_C, lis2mdl_read_reg(), and lis2mdl_write_reg().

| int32_t lis2mdl_int_gen_conf_get | ( | const stmdev_ctx_t * | ctx, |
| lis2mdl_int_crtl_reg_t * | val | ||
| ) |
Interrupt generator configuration register.[get].
| ctx | read / write interface definitions.(ptr) |
| val | registers INT_CRTL_REG.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1157 of file lis2mdl_reg.c.
References LIS2MDL_INT_CRTL_REG, and lis2mdl_read_reg().

| int32_t lis2mdl_int_gen_conf_set | ( | const stmdev_ctx_t * | ctx, |
| lis2mdl_int_crtl_reg_t * | val | ||
| ) |
Interrupt generator configuration register.[set].
| ctx | read / write interface definitions.(ptr) |
| val | registers INT_CRTL_REG.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1139 of file lis2mdl_reg.c.
References LIS2MDL_INT_CRTL_REG, and lis2mdl_write_reg().

| int32_t lis2mdl_int_gen_source_get | ( | const stmdev_ctx_t * | ctx, |
| lis2mdl_int_source_reg_t * | val | ||
| ) |
Interrupt generator source register.[get].
| ctx | read / write interface definitions.(ptr) |
| val | registers INT_SOURCE_REG.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1175 of file lis2mdl_reg.c.
References LIS2MDL_INT_SOURCE_REG, and lis2mdl_read_reg().

| int32_t lis2mdl_int_gen_threshold_get | ( | const stmdev_ctx_t * | ctx, |
| uint16_t * | val | ||
| ) |
User-defined threshold value for xl interrupt event on generator. Data format is the same of output data raw: two’s complement with 1LSb = 1.5mG.[get].
| ctx | read / write interface definitions.(ptr) |
| buff | that stores data read |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1217 of file lis2mdl_reg.c.
References LIS2MDL_INT_THS_L_REG, and lis2mdl_read_reg().

| int32_t lis2mdl_int_gen_threshold_set | ( | const stmdev_ctx_t * | ctx, |
| uint16_t | val | ||
| ) |
User-defined threshold value for xl interrupt event on generator. Data format is the same of output data raw: two’s complement with 1LSb = 1.5mG.[set].
| ctx | read / write interface definitions.(ptr) |
| buff | that contains data to write |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1195 of file lis2mdl_reg.c.
References LIS2MDL_INT_THS_L_REG, and lis2mdl_write_reg().

| int32_t lis2mdl_int_on_pin_get | ( | const stmdev_ctx_t * | ctx, |
| uint8_t * | val | ||
| ) |
Interrupt signal on INT_DRDY pin.[get].
| ctx | read / write interface definitions.(ptr) |
| val | change the values of int_on_pin in reg CFG_REG_C.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1120 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_c_t::int_on_pin, LIS2MDL_CFG_REG_C, and lis2mdl_read_reg().

| int32_t lis2mdl_int_on_pin_set | ( | const stmdev_ctx_t * | ctx, |
| uint8_t | val | ||
| ) |
Interrupt signal on INT_DRDY pin.[set].
| ctx | read / write interface definitions.(ptr) |
| val | change the values of int_on_pin in reg CFG_REG_C |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1096 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_c_t::int_on_pin, LIS2MDL_CFG_REG_C, lis2mdl_read_reg(), and lis2mdl_write_reg().

| int32_t lis2mdl_offset_int_conf_get | ( | const stmdev_ctx_t * | ctx, |
| lis2mdl_int_on_dataoff_t * | val | ||
| ) |
The interrupt block recognition checks data after/before the hard-iron correction to discover the interrupt.[get].
| ctx | read / write interface definitions.(ptr) |
| val | Get the values of int_on_dataoff in reg CFG_REG_B.(ptr) |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 1019 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_b_t::int_on_dataoff, LIS2MDL_CFG_REG_B, LIS2MDL_CHECK_AFTER, LIS2MDL_CHECK_BEFORE, and lis2mdl_read_reg().

| int32_t lis2mdl_offset_int_conf_set | ( | const stmdev_ctx_t * | ctx, |
| lis2mdl_int_on_dataoff_t | val | ||
| ) |
The interrupt block recognition checks data after/before the hard-iron correction to discover the interrupt.[set].
| ctx | read / write interface definitions.(ptr) |
| val | change the values of int_on_dataoff in reg CFG_REG_B |
| interface | status.(MANDATORY: return 0 -> no Error) |
Definition at line 993 of file lis2mdl_reg.c.
References lis2mdl_cfg_reg_b_t::int_on_dataoff, LIS2MDL_CFG_REG_B, lis2mdl_read_reg(), and lis2mdl_write_reg().
