91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 4.88MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-11-20
  • 語言: 其他
  • 標(biāo)簽: 001??

資源簡介

基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼),代碼程序為STM32F4適用

資源截圖

代碼片段和文件信息

#include?“bmp085.h“
#include?“sim_i2c.h“

/******************************************************************************
*********************************??應(yīng)?用?資?料?********************************
單位:??1kpa?=10hpa
輸出:?UT:0.1讀如304即30.4度
輸出:?UP:pa如100635即100.635kPa
******************************************************************************/

#include?“Delay_SysTick.h“


#define???OSS?0 ?// BMP085使用

#define?BMP085_Addr?0xee????????????//氣壓傳感器器件地址




short?ac1;
short?ac2;?
short?ac3;?
unsigned?short?ac4;
unsigned?short?ac5;
unsigned?short?ac6;
short?b1;?
short?b2;
short?mb;
short?mc;
short?md;

float?ref_Altitude;



float?BMP085_GetAltitude(int32_t?up);



/******************************************************************************
*********************************??程序開始??**********************************
******************************************************************************/


/******************************************************************************
/?函數(shù)功能:初始化BMP085
/?修改日期:none
/?輸入?yún)?shù):none
/?輸出參數(shù):none
/?使用說明:none
******************************************************************************/
void??BMP085_Init(void)
{
????uint8_t?tmp[22];

????Mult_Read(BMP085_Addr0xAAtmp22);?//讀出22個數(shù)據(jù)
????
????//整合參數(shù)為int16_t類型
????ac1?=?(int16_t)(?(tmp[0]<<8)?+tmp[1]??);
????ac2?=?(int16_t)(?(tmp[2]<<8)?+tmp[3]??);
????ac3?=?(int16_t)(?(tmp[4]<<8)?+tmp[5]??);
????ac4?=?(uint16_t)(?(tmp[6]<<8)?+tmp[7]??);
????ac5?=?(uint16_t)(?(tmp[8]<<8)?+tmp[9]??);
????ac6?=?(uint16_t)(?(tmp[10]<<8)+tmp[11]?);
????b1??=?(int16_t)(?(tmp[12]<<8)+tmp[13]?);
????b2??=?(int16_t)(?(tmp[14]<<8)+tmp[15]?);
????mb??=?(int16_t)(?(tmp[16]<<8)+tmp[17]?);
????mc??=?(int16_t)(?(tmp[18]<<8)+tmp[19]?);
????md??=?(int16_t)(?(tmp[20]<<8)+tmp[21]?);
????
????ref_Altitude?=?0;
}

/******************************************************************************
/?函數(shù)功能:
/?修改日期:none
/?輸入?yún)?shù):none
/?輸出參數(shù):none
/?使用說明:none
******************************************************************************/
static?int32_t?bmp085ReadTemp(void)
{???
????int16_t??temp_ut;
????Single_Write(BMP085_Addr0xF40x2E);
????Delay_us(450);?//?m?4.5ms
????temp_ut?=?Single_Read(BMP085_Addr0xF6);
????temp_ut?=?(temp_ut<<8)|?Single_Read(BMP085_Addr0xF7);??????
????return?(int32_t)?temp_ut?;
}



/******************************************************************************
/?函數(shù)功能:
/?修改日期:none
/?輸入?yún)?shù):none
/?輸出參數(shù):none
/?使用說明:none
******************************************************************************/
static?int32_t?bmp085ReadPressure(void)
{
????int32_t?pressure?=?0;
????
????Single_Write(BMP085_Addr0xF40x34);
????Delay_us(450);?//?m?4.5ms
????pressure?=?Single_Read(BMP085_Addr0xF6);
????pressure?=?(pressure<<8)|?Single_Read(BMP085_Addr0xF7);????????
????pressure?&=?0x0000FFFF;?
????return?pressure;
}

/******************************************************************************

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-06?22:23??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\
?????目錄???????????0??2019-01-06?22:23??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\
?????目錄???????????0??2013-09-25?09:51??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\
?????文件??????398368??2013-09-25?09:55??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器.rar
?????目錄???????????0??2013-09-16?10:09??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\
?????目錄???????????0??2013-09-16?10:09??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\
?????文件????????6298??2013-09-04?18:16??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\bmp085.c
?????文件?????????264??2013-09-10?09:57??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\bmp085.h
?????文件????????1560??2013-09-12?09:15??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\bsp.c
?????文件?????????272??2013-09-10?09:25??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\bsp.h
?????文件????????1219??2013-09-09?15:42??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\Delay_SysTick.c
?????文件?????????174??2013-09-04?15:50??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\Delay_SysTick.h
?????文件????????2563??2013-09-06?11:51??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\dht11.c
?????文件????????1516??2013-09-06?10:51??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\dht11.h
?????文件????????4929??2013-09-10?16:08??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\GP2Y1010.c
?????文件?????????871??2013-09-07?16:44??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\GP2Y1010.h
?????文件????????8055??2013-09-10?17:04??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\LCD12864.c
?????文件????????1804??2013-09-10?17:05??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\lCD12864.h
?????文件???????12907??2013-08-20?15:20??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\nRF24L01.c
?????文件????????5713??2013-09-10?17:59??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\nRF24L01.h
?????文件????????9967??2013-09-06?10:23??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\sim_i2c.c
?????文件????????4329??2013-09-05?18:20??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\BSP\sim_i2c.h
?????目錄???????????0??2013-09-16?10:09??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\
?????文件??????108260??2012-12-18?00:57??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\core_cm4.h
?????文件???????21323??2012-12-18?00:57??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\core_cm4_simd.h
?????文件???????15828??2012-12-18?00:57??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\core_cmFunc.h
?????文件???????17205??2012-12-18?00:57??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\core_cmInstr.h
?????文件??????544860??2013-07-25?11:12??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\stm32f4xx.h
?????文件???????21405??2013-07-25?11:14??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\system_stm32f4xx.c
?????文件????????2234??2013-01-10?18:54??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\CMSIS\system_stm32f4xx.h
?????目錄???????????0??2013-09-16?10:09??基于STM32的氣象站預(yù)報系統(tǒng)設(shè)計(源碼)\源代碼和上位機\采集器\WeatherStation\FWlib\
............此處省略224個文件信息

評論

共有 條評論