libraries/hshcal001.c
int32_t HSHCAL001_Init(HSHCAL001_Object_t *pObj)
{
  if (pObj->is_initialized == 0U)
  {
    if (HSHCAL001_Initialize(pObj) != HSHCAL001_OK)
    {
      return HSHCAL001_ERROR;
    }
  }

  pObj->is_initialized = 1;

  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
int32_t HSHCAL001_Init(HSHCAL001_Object_t *pObj)
{
  if (pObj->is_initialized == 0U)
  {
    if (HSHCAL001_Initialize(pObj) != HSHCAL001_OK)
    {
      return HSHCAL001_ERROR;
    }
  }
  pObj->is_initialized = 1;
  return HSHCAL001_OK;
}
int32_t HSHCAL001_Init ( HSHCAL001_Object_t * pObj ) { if ( pObj -> is_initialized == 0U ) { if ( HSHCAL001_Initialize ( pObj ) != HSHCAL001_OK ) { return HSHCAL001_ERROR ; } } pObj -> is_initialized = 1 ; 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