/******************************************************************************* * モジュール名称 :アプリケーション02 - HK read & anaylses - EWO * * 参考 : app02_DPU.c を参照 * * 注意 : EDIT権限は、EWO組 (SORBETから委託) * * 作成日・作成者 :2012/8/22 Y.K. * *******************************************************************************/ #include "app_common.h" #include "app_EWO.h" #define d_SIZEhk_SOR 20 // HK-size // ******************************************************************** // *** SORBET : HK analyses, HW CMD production, HK packet production *** // ******************************************************************** int app02_SOR ( unsigned char uc_dataHK[], unsigned int ui_counter, unsigned char uc_link) { int i_flag; unsigned char uc_cmdbuff[2]; // ************************* // *** HW HK analyses *** // ************************* if ( uc_link ) { // --- HW-ON --- // ## // ----------------- // b6 AM2P-On // b5 MEF-Cal // b4 MEF-Bias // b3 MEF-Gain // b2 WPT-Cal // b1 WPT-Bias // b0 WPT-Gain // ----------------- if (Guc_SOR_data_status != Guc_SOR_data_status0 && Guc_SOR_data_status0 != 0xFF ) { uc_cmdbuff[0x00] = 0xD0; uc_cmdbuff[0x01] = Guc_SOR_data_status; i_flag = app_PiCmd( Gd_N_SOR, uc_cmdbuff, 2 ); // --- CMD-Buffer Write // return: 0 .... Success // others .... Non-success } } Guc_SOR_data_status0 = 0xFF; // ****************************** // *** HK Production in 'OFF *** // ****************************** if ( uc_link == 0 ) return( 0 ); else return( d_SIZEhk_SOR ); }