| Electronic Components Datasheet Search |
|
AN3108 Datasheet(PDF) 40 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3108 Datasheet(HTML) 40 Page - STMicroelectronics |
|
40 / 44 page ![]() Example application AN3108 40/44 Doc ID 16793 Rev 1 cTemperatureSign = (pStrTemperature->TS_Sign == TS_PLUS_SIGN) ? '+' : '-'; /* Send Temperature read data to the debugger Terminal Output Window */ printf ("Read Temperature (%d): %c%d.%d\r\n", \ uReadingNumber++, \ cTemperatureSign, \ pStrTemperature->TS_IntegerValue, \ pStrTemperature->TS_DecimalValue); } } /****************************************************************** * Function Name : STLM75_Configuration * Description : Configure the Micro I2C peripheral and GPIO pins in order to use * : the TempSensor hardware components present on the application board * Input : pObjTempSensor - The STLM75 temperature sensor object pointer * Output : None * Return : None ******************************************************************/ void STLM75_Configuration (TempSensorType* pObjTempSensor) { TS_SignalsType TempSensorSignals; TS_I2C_SettingsType TempSensorI2C_Settings; /* Enable I2C2 clock */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C2, ENABLE); /* Enable GPIOB clock */ RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE); /* GPIO signals configuration */ |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |