資源簡介
海曼HTPA32X32d官方庫開發包,有例程,很方便移植到自已的應用程序里。后期需要二次開發的多溝通。
代碼片段和文件信息
#define?COMPDEFECTIVEPIX
#define?SCALETOPTAT
/********************************************************************
?*?Function:????????void?RecalibThOffset(void)
?*
?*?Description:?????This?function?does?a?recalibration?by?looking?at?a?smooth?picture
?*
?*?Dependencies:????none
?*******************************************************************/
void?RecalibThOffset(void){
unsigned?int?ikcBlockCalibNextBlock;
unsigned?long?PTATVddLong;
unsigned?long?CalibData[(unsigned?short)Pixel+(unsigned?short)PTATamount+(unsigned?short)ELAMOUNT];
unsigned?char?eecpy[Pixel*2]BufferRAM[2];
unsigned?short?PixelValuePixel2Valuereadback;
TAsicSFR?I2Creg;
unsigned?short?AverageAmount;
float?TAMBcommon[3];
unsigned?char?ReadBlindframe=0GetBlindframe=0;
char?GetVddMeas=0VddSampledBefore=0VddSampledNow=0;
unsigned?long?VddSensorLong=0;
unsigned?long?long?DividerVdd;
signed?long?VoltageLong2NewDeltaVdd;
signed?short?DeltaVdd;
unsigned?long?long?DividerVdd2;
signed?long?long?VoltageLongLong;
IEC0bits.INT4IE=0;??//neu
sprintf(tempstring“Recording...\r\n“);
putstringUDPUART(tempstring);
U2RXREG=0;
U2STA&0;
IFS1bits.U2RXIF?=?0;
IEC0bits.T4IE=0;
IEC1bits.U2TXIE=0;
IEC0bits.INT1IE?=?0;
????calibsocket?=?UDPOpen(30333&CamServer30333);
//initialize?all?values?to?0
????memset(CalibData0sizeof(CalibData));
//start?the?sensor
????SensorWakeup(0);
????
I2Creg.adr=0x1A;
I2Creg.read=0x00;
I2Creg.Config=0x01;
I2Creg.sfrdata=0x09; //always?start?with?block?0
WriteConf(I2Creg);
????sprintf(tempstring“.“);
for(k=0;k<(unsigned?short)runtoBlindBeforePixC;k++){
????????for(BlockCalib=0;BlockCalib<4;BlockCalib++){
????????????NextBlock=BlockCalib+1;
????????????if(NextBlock>3){
????????????????NextBlock=0;
????????????????while(!UDPIsPutReady(calibsocket));
????????????????UDPPutArray((BYTE*)Voltage[0]DATALength);
????????????????UDPFlush();
????????????????while(!UDPIsPutReady(calibsocket));
????????????????UDPPutArray((unsigned?char*)&Voltage[0][DataLengthHalf]DATALength2);
????????????????UDPFlush();
????????????????StackTask();
????????????}
????????????//wait?until?EOC?is?set
???????????//?DelayMs(tFR);
????????????do{
????????????????????p=data;
????????????????????I2Creg.adr=0x1A;
????????????????????I2Creg.read=0x00;
????????????????????I2Creg.Config=0x02;
????????????????????Read_RAM(dataI2Creg0x01);
????????????}while((data[0]&0x01)!=0x01);
????????????//readout?the?whole?frame?for?both?sides
????????????I2Creg.adr=0x1A;
????????????I2Creg.read=0x00;
????????????I2Creg.Config=0x0A;
????????????p=data;
????????????Read_RAM(dataI2CregPixelforth+2);
????????????I2Creg.adr=0x1A;
????????????I2Creg.read=0x00;
????????????I2Creg.Config=0x0B;
????????????p2=data2;
????????????Read_RAM(data2I2CregPixelforth+2);
????????????//start?the?sensor?again
????????????I2Creg.adr=0x1A;
????????????I2Creg.read=0x00;
????????????I2Creg.Config=0x01;
??????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????115496??2017-04-18?20:41??SampleCode32x32dR2\32x32d_ExampleData.xlsx
?????文件??????13767??2017-08-24?22:29??SampleCode32x32dR2\32x32d_I2C_CLKTRIM.xlsx
?????文件??????13545??2016-07-27?17:04??SampleCode32x32dR2\32x32d_I2C_CLKTRIM_I2C400kHz.xlsx
?????文件????????510??2015-06-18?14:41??SampleCode32x32dR2\BTypes.h
?????文件????????856??2019-06-05?16:56??SampleCode32x32dR2\Change_History.txt
?????文件???????9278??2017-02-16?20:55??SampleCode32x32dR2\Correlation_Datasheet_SampleCode.xlsx
?????文件??????10452??2019-02-27?15:16??SampleCode32x32dR2\defs.h
?????文件?????274388??2018-03-09?14:14??SampleCode32x32dR2\EEPROM_32x32d_Example.xlsx
?????文件??????13683??2016-12-28?18:17??SampleCode32x32dR2\Look-up_Table_Example.xlsx
?????文件??????16705??2017-11-02?17:40??SampleCode32x32dR2\OffsetAdaption.c
?????文件??????62116??2019-06-05?16:56??SampleCode32x32dR2\sampleCode32x32dR1_V0_06.c
?????文件????1389383??2018-05-30?14:02??SampleCode32x32dR2\Table.c
????..AD...?????????0??2019-06-05?16:56??SampleCode32x32dR2
-----------?---------??----------?-----??----
??????????????1920179????????????????????13
- 上一篇:png格式常用圖標(16x16像素)收集1800多個
- 下一篇:禪道使用說明書手冊
評論
共有 條評論