lib/LPS22HB/src/LPS22HBSensor.h
/**
     * @brief Utility function to write data.
     * @param  pBuffer: pointer to data to be written.
     * @param  RegisterAddr: specifies internal address register to be written.
     * @param  NumByteToWrite: number of bytes to write.
     * @retval 0 if ok, an error code otherwise.
     */
@brief Utility function to write data.
@param  pBuffer: pointer to data to be written.
@param  RegisterAddr: specifies internal address register to be written.
@param  NumByteToWrite: number of bytes to write.
@retval 0 if ok, an error code otherwise.
@brief Utility function to write data . @param pBuffer : pointer to data to be written . @param RegisterAddr : specifies internal address register to be written . @param NumByteToWrite : number of bytes to write . @retval 0 if ok an error code otherwise .
uint8_t IO_Write(uint8_t* pBuffer, uint8_t RegisterAddr, uint16_t NumByteToWrite)
    {
      dev_i2c->beginTransmission(((uint8_t)(((address) >> 1) & 0x7F)));
      dev_i2c->write(RegisterAddr);
      for (int i = 0 ; i < NumByteToWrite ; i++)
        dev_i2c->write(pBuffer[i]);
      dev_i2c->endTransmission(true);
      return 0;
    }
uint8_t IO_Write ( uint8_t * pBuffer , uint8_t RegisterAddr , uint16_t NumByteToWrite ) { dev_i2c -> beginTransmission ( ( ( uint8_t ) ( ( ( address ) >> 1 ) & 0x7F ) ) ) ; dev_i2c -> write ( RegisterAddr ) ; for ( int i = 0 ; i < NumByteToWrite ; i ++ ) dev_i2c -> write ( pBuffer [ i ] ) ; dev_i2c -> endTransmission ( true ) ; return 0 ; }
@brief Utility function to write data.
@brief Utility function to write data .