本文整理汇总了C++中LIS3MDL_MAG_ReadReg函数的典型用法代码示例。如果您正苦于以下问题:C++ LIS3MDL_MAG_ReadReg函数的具体用法?C++ LIS3MDL_MAG_ReadReg怎么用?C++ LIS3MDL_MAG_ReadReg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了LIS3MDL_MAG_ReadReg函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: LIS3MDL_MAG_R_DataXYZOverrun
status_t LIS3MDL_MAG_R_DataXYZOverrun(void *handle, LIS3MDL_MAG_ZYXOR_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_STATUS_REG, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_ZYXOR_MASK; //mask
return MEMS_SUCCESS;
}
示例2: LIS3MDL_MAG_R_LatchInterruptRq
status_t LIS3MDL_MAG_R_LatchInterruptRq(void *handle, LIS3MDL_MAG_LIR_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_INT_CFG, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_LIR_MASK; //mask
return MEMS_SUCCESS;
}
示例3: LIS3MDL_MAG_R_BlockDataUpdate
status_t LIS3MDL_MAG_R_BlockDataUpdate(void *handle, LIS3MDL_MAG_BDU_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG5, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_BDU_MASK; //mask
return MEMS_SUCCESS;
}
示例4: LIS3MDL_MAG_R_NewXYZData
status_t LIS3MDL_MAG_R_NewXYZData(void *handle, LIS3MDL_MAG_ZYXDA_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_STATUS_REG, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_ZYXDA_MASK; //mask
return MEMS_SUCCESS;
}
示例5: LIS3MDL_MAG_R_LittleBigEndianInversion
status_t LIS3MDL_MAG_R_LittleBigEndianInversion(void *handle, LIS3MDL_MAG_BLE_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG4, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_BLE_MASK; //mask
return MEMS_SUCCESS;
}
示例6: LIS3MDL_MAG_R_OperatingModeZ
status_t LIS3MDL_MAG_R_OperatingModeZ(void *handle, LIS3MDL_MAG_OMZ_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG4, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_OMZ_MASK; //mask
return MEMS_SUCCESS;
}
示例7: LIS3MDL_MAG_R_SerialInterfaceMode
status_t LIS3MDL_MAG_R_SerialInterfaceMode(void *handle, LIS3MDL_MAG_SIM_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG3, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_SIM_MASK; //mask
return MEMS_SUCCESS;
}
示例8: LIS3MDL_MAG_R_FastLowPowerXYZ
status_t LIS3MDL_MAG_R_FastLowPowerXYZ(void *handle, LIS3MDL_MAG_LP_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG3, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_LP_MASK; //mask
return MEMS_SUCCESS;
}
示例9: LIS3MDL_MAG_R_SystemOperatingMode
status_t LIS3MDL_MAG_R_SystemOperatingMode(void *handle, LIS3MDL_MAG_MD_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG3, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_MD_MASK; //mask
return MEMS_SUCCESS;
}
示例10: LIS3MDL_MAG_R_FullScale
status_t LIS3MDL_MAG_R_FullScale(void *handle, LIS3MDL_MAG_FS_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG2, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_FS_MASK; //mask
return MEMS_SUCCESS;
}
示例11: LIS3MDL_MAG_R_Reboot
status_t LIS3MDL_MAG_R_Reboot(void *handle, LIS3MDL_MAG_REBOOT_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG2, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_REBOOT_MASK; //mask
return MEMS_SUCCESS;
}
示例12: LIS3MDL_MAG_R_InterruptActive
status_t LIS3MDL_MAG_R_InterruptActive(void *handle, LIS3MDL_MAG_IEA_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_INT_CFG, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_IEA_MASK; //mask
return MEMS_SUCCESS;
}
示例13: LIS3MDL_MAG_R_InterruptFlag
status_t LIS3MDL_MAG_R_InterruptFlag(void *handle, LIS3MDL_MAG_INT_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_INT_SRC, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_INT_MASK; //mask
return MEMS_SUCCESS;
}
示例14: LIS3MDL_MAG_R_OutputDataRate
status_t LIS3MDL_MAG_R_OutputDataRate(void *handle, LIS3MDL_MAG_DO_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_CTRL_REG1, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_DO_MASK; //mask
return MEMS_SUCCESS;
}
示例15: LIS3MDL_MAG_R_PositiveThresholdFlagX
status_t LIS3MDL_MAG_R_PositiveThresholdFlagX(void *handle, LIS3MDL_MAG_PTH_X_t *value)
{
if( !LIS3MDL_MAG_ReadReg(handle, LIS3MDL_MAG_INT_SRC, (u8_t *)value) )
return MEMS_ERROR;
*value &= LIS3MDL_MAG_PTH_X_MASK; //mask
return MEMS_SUCCESS;
}