libraries/hshcal001.c
int32_t HSHCAL001_TEMP_GetTemperature(HSHCAL001_Object_t *pObj, float *Value)
{
	axis1bit16_t data_raw_temperture;
	uint16_t ht;
	char buf[10];
	
  if (hshcal001_temperature_raw_get(&(pObj->Ctx), data_raw_temperture.u8bit) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }
	
	ht = data_raw_temperture.u8bit[1]*256+data_raw_temperture.u8bit[0];
	
	*Value =ht*0.02 -41.92;

  return 0;
}
/**
 * @brief  Get the HSHCAL001 temperature value
 * @param  pObj the device pObj
 * @param  Value pointer where the temperature value is written
 * @retval 0 in case of success, an error code otherwise
 */
@brief  Get the HSHCAL001 temperature value
@param  pObj the device pObj
@param  Value pointer where the temperature value is written
@retval 0 in case of success, an error code otherwise
@brief Get the HSHCAL001 temperature value @param pObj the device pObj @param Value pointer where the temperature value is written @retval 0 in case of success an error code otherwise
int32_t HSHCAL001_TEMP_GetTemperature(HSHCAL001_Object_t *pObj, float *Value)
{
	axis1bit16_t data_raw_temperture;
	uint16_t ht;
	char buf[10];
  if (hshcal001_temperature_raw_get(&(pObj->Ctx), data_raw_temperture.u8bit) != HSHCAL001_OK)
  {
    return HSHCAL001_ERROR;
  }
	ht = data_raw_temperture.u8bit[1]*256+data_raw_temperture.u8bit[0];
	*Value =ht*0.02 -41.92;
  return 0;
}
int32_t HSHCAL001_TEMP_GetTemperature ( HSHCAL001_Object_t * pObj , float * Value ) { axis1bit16_t data_raw_temperture ; uint16_t ht ; char buf [ 10 ] ; if ( hshcal001_temperature_raw_get ( & ( pObj -> Ctx ) , data_raw_temperture . u8bit ) != HSHCAL001_OK ) { return HSHCAL001_ERROR ; } ht = data_raw_temperture . u8bit [ 1 ] * 256 + data_raw_temperture . u8bit [ 0 ] ; * Value = ht * 0.02 - 41.92 ; return 0 ; }
@brief  Get the HSHCAL001 temperature value
 @param  pObj the device pObj
 @param  Value pointer where the temperature value is written
 @retval 0 in case of success, an error code otherwise
@brief Get the HSHCAL001 temperature value @param pObj the device pObj @param Value pointer where the temperature value is written @retval 0 in case of success an error code otherwise