libraries/hshcal001.c
static int32_t HSHCAL001_Initialize(HSHCAL001_Object_t *pObj)
{
  /* Power off the component. */
  if (hshcal001_power_on_set(&(pObj->Ctx), PROPERTY_DISABLE) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }


  /* Set default ODR */
  if (HSHCAL001_SetOutputDataRate(pObj, 1.0f) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }

  return HSHCAL001_OK;
}
/**
 * @brief  Initialize the HSHCAL001 sensor
 * @param  pObj the device pObj
 * @retval 0 in case of success, an error code otherwise
 */
@brief  Initialize the HSHCAL001 sensor
@param  pObj the device pObj
@retval 0 in case of success, an error code otherwise
@brief Initialize the HSHCAL001 sensor @param pObj the device pObj @retval 0 in case of success an error code otherwise
static int32_t HSHCAL001_Initialize(HSHCAL001_Object_t *pObj)
{
  if (hshcal001_power_on_set(&(pObj->Ctx), PROPERTY_DISABLE) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }
  if (HSHCAL001_SetOutputDataRate(pObj, 1.0f) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }
  return HSHCAL001_OK;
}
static int32_t HSHCAL001_Initialize ( HSHCAL001_Object_t * pObj ) { if ( hshcal001_power_on_set ( & ( pObj -> Ctx ) , PROPERTY_DISABLE ) != HSHCAL001_OK ) { return HSHCAL001_ERROR ; } if ( HSHCAL001_SetOutputDataRate ( pObj , 1.0f ) != HSHCAL001_OK ) { return HSHCAL001_ERROR ; } return HSHCAL001_OK ; }
@brief  Initialize the HSHCAL001 sensor
 @param  pObj the device pObj
 @retval 0 in case of success, an error code otherwise
@brief Initialize the HSHCAL001 sensor @param pObj the device pObj @retval 0 in case of success an error code otherwise
/* Power off the component. */ /* Set default ODR */