/* Set the IIS2MDC register value for magnetic sensor.  */
int32_t IIS2MDC_Write_Reg(IIS2MDC_Object_t *pObj, uint8_t Reg, uint8_t Data)
/* Set the IIS2MDC register value for magnetic sensor.  */
int32_t IIS2MDC_Write_Reg(IIS2MDC_Object_t *pObj, uint8_t Reg, uint8_t Data)
{
  if (iis2mdc_write_reg(&(pObj->Ctx), Reg, &Data, 1) != IIS2MDC_OK)
  {
    return IIS2MDC_ERROR;
  }
  return IIS2MDC_OK;
}