Lines Matching refs:mag_cfg
59 uint8_t mag_cfg[2]; in lsm6dsl_lis2mdl_init() local
64 mag_cfg[0] = LIS2MDL_SW_RESET; in lsm6dsl_lis2mdl_init()
66 LIS2MDL_CFG_REG_A, mag_cfg, 1); in lsm6dsl_lis2mdl_init()
71 mag_cfg[0] = LIS2MDL_ODR_10HZ; in lsm6dsl_lis2mdl_init()
72 mag_cfg[1] = LIS2MDL_OFF_CANC; in lsm6dsl_lis2mdl_init()
74 LIS2MDL_CFG_REG_A, mag_cfg, 2); in lsm6dsl_lis2mdl_init()
139 uint8_t mag_cfg[2]; in lsm6dsl_lis3mdl_init() local
144 mag_cfg[0] = LIS3MDL_REBOOT_MASK | LIS3MDL_SOFT_RST_MASK; in lsm6dsl_lis3mdl_init()
146 LIS3MDL_REG_CTRL2, mag_cfg, 1); in lsm6dsl_lis3mdl_init()
151 mag_cfg[0] = LIS3MDL_ODR; in lsm6dsl_lis3mdl_init()
153 LIS3MDL_REG_CTRL1, mag_cfg, 1); in lsm6dsl_lis3mdl_init()
155 mag_cfg[0] = LIS3MDL_MD_CONTINUOUS; in lsm6dsl_lis3mdl_init()
157 LIS3MDL_REG_CTRL3, mag_cfg, 1); in lsm6dsl_lis3mdl_init()