1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609 |
- /*
- * Bluecell_operate.h
- *
- * Created on: 2020. 4. 3.
- * Author: YJ
- */
- #ifndef BLUECELL_OPERATE_H_
- #define BLUECELL_OPERATE_H_
- #include <stdbool.h>
- #include "Bluecell_operate.h"
- /*
- SYN
- Sub-UID
- R-Code
- TR-ID
- Seq-Num
- TTL
- Time
- 占쏙옙占쏙옙 占쏙옙占쏙옙
- CMD
- Length
- Header Checksum
- SUB-DATA
- SUB-DATA-CRC
- ETX
- */
- /*
- *
- 0 80 占쏙옙체 占쏙옙占쏙옙 占쏙옙회 占쏙옙占� AID 占쌓몌옙 占쏙옙占쏙옙 占쏙옙占쏙옙 占쏙옙청 占쏙옙 占쏙옙占쏙옙 (占쏙옙청 Frame占쏙옙 SUB-DATA 占쏙옙 占쏙옙占싱댐옙 0)
- 1 81 占쏙옙占쏙옙 占쏙옙청 占쏙옙占쏙옙 占쏙옙청占쏙옙 REQ占쏙옙 0x01 占싱곤옙 占쏙옙占쏙옙占쏙옙 占쏙옙체 占쏙옙占쏙옙占쏙옙 占쏙옙占승몌옙 占쏙옙占쏙옙
- 10 90 Download Notification 占쌕울옙琯占� 占쏙옙占쏙옙
- 11 91 Download Data 占쌕울옙琯占� data
- 12 92 Download Confirm 占쌕울옙琯占� 확占쏙옙
- 13 93 Download Complete Download Complete Command
- 14 94 System-Reboot System Rebooting Command
- 40 C0 占쏙옙占싱븝옙 占쏙옙회 占쏙옙 占쏙옙占쏙옙
- 41 C1 占쏙옙占싱븝옙 占쏙옙占쏙옙 占쏙옙 占쏙옙占쏙옙
- *
- *
- */
-
- #define ANSI_COLOR_RED "\x1b[31m"
- #define ANSI_COLOR_GREEN "\x1b[32m"
- #define ANSI_COLOR_YELLOW "\x1b[33m"
- #define ANSI_COLOR_BLUE "\x1b[34m"
- #define ANSI_COLOR_MAGENTA "\x1b[35m"
- #define ANSI_COLOR_CYAN "\x1b[36m"
- #define ANSI_COLOR_RESET "\x1b[0m" "\r\n"
- #define MBIC_BANK1_NUM 1
- #define MBIC_BANK2_NUM 2
- typedef enum{
- AllDataReq = 0, // -> Response 80
- DataCtrlReq, // -> Response 81
- DownNotification, // -> Response 90
- DownData, // -> Response 91
- DownConfirm , // -> Response 92
- DownComplete, // -> Response 93
- SystemReboot, // -> Response 94
- TableDataReq = 40,
- }MBICBootProt_st;
- typedef enum{
- MBIC_GET = 0,
- MBIC_SET,
- MBIC_Table_Get = 0x40,
- MBIC_Table_Set = 0x41,
- }BMBM_CMD;
- typedef struct{
- uint8_t High_bit;
- uint8_t Low_bit;
- }OneByteToTwoByte;
- typedef enum{
- MBIC_Notice_REQ = 0x10,
- MBIC_Download_DATA_REQ,
- MBIC_Download_Confirm_REQ,
- MBIC_Complete_Notice_REQ_REQ,
- MBIC_Reboot_Notice_REQ,
- }MBIC_Download_Req_L;
- typedef enum{
- MBIC_Notice_RSP = 0x90,
- MBIC_Download_DATA_RSP,
- MBIC_Download_Confirm_RSP,
- MBIC_Complete_Notice_RSP,
- MBIC_Reboot_Notice_RSP,
- }MBIC_Download_Rsp_L;
- typedef enum{
- MBIC_PREAMBLE_0 = 0,
- MBIC_PREAMBLE_1,
- MBIC_PREAMBLE_2,
- MBIC_PREAMBLE_3,
- MBIC_SUBUID_0,
- MBIC_SUBUID_1,
- MBIC_RCODE_0,
- MBIC_TRID_0,
- MBIC_TRID_1,
- MBIC_SEQSUM_0, // 9Index
-
- MBIC_TTL_0, //10 INDEX
- MBIC_TIME_0, // YEAR
- MBIC_TIME_1,// Month
- MBIC_TIME_2,// day
- MBIC_TIME_3,// Hour
- MBIC_TIME_4,// minute
- MBIC_TIME_5,//second
- MBIC_ERRRESPONSE_0,
- MBIC_CMD_0,
-
- MBIC_LENGTH_0, // 19INDEX
- MBIC_LENGTH_1, // 20
- MBIC_HEADERCHECKSUM_0,
- MBIC_PAYLOADSTART,
- /*
- * PayLoadSTART
- */
- }MBICProt_st;
- typedef enum{
- AGC_Alarm_DL1_Index = 0,
- AGC_Alarm_DL2_Index,
- AGC_Alarm_DL3_Index,
- AGC_Alarm_DL4_Index,
- AGC_Alarm_DL_Index_MAX,
- }AGC_Alarm_I;
- typedef enum{
- ALC_Alarm_UL1_Index = 0,
- ALC_Alarm_UL2_Index,
- ALC_Alarm_UL3_Index,
- ALC_Alarm_UL4_Index,
- ALC_Alarm_UL_Index_MAX,
- }ALC_Alarm_I;
- typedef enum{
- AGC_Table_DL1_Ref_Index = 0,
- AGC_Table_DL2_Ref_Index,
- AGC_Table_DL3_Ref_Index,
- AGC_Table_DL4_Ref_Index,
- AGC_Table_DL_Ref_Index_MAX,
- }AGC_Table_I;
- #define TABLE_MAX_VALUE 0
- #define TABLE_LENGTH_MAX 70
- typedef enum{
- ALC_Table_UL1_Ref_Index = 0,
- ALC_Table_UL2_Ref_Index,
- ALC_Table_UL3_Ref_Index,
- ALC_Table_UL4_Ref_Index,
- ALC_Table_UL_Ref_Index_MAX,
- };
-
- typedef enum{
- Table_DL1_Ref_Index = 0,
- Table_DL2_Ref_Index,
- Table_DL3_Ref_Index,
- Table_DL4_Ref_Index,
- Table_UL1_Ref_Index,
- Table_UL2_Ref_Index,
- Table_UL3_Ref_Index,
- Table_UL4_Ref_Index,
- Table_ATT_Ref_Index_MAX,
- };
- typedef enum{
- Alarm_Bit_List = 0x00,
- Alarm_Mask,
- Alarm_Test_Mode,
- Alarm_Test_Dummy,
- CPU_Version,
- ModuleINFORMATION_null1,
- CPU_Current_Bank,
- CPU_Bank_Select_Reboot_by,
- CPU_Bank1_Image_Version,
- CPU_Bank1_Image_BuildTime,
- CPU_Bank1_Image_Name,
- CPU_Bank2_Image_Version,
- CPU_Bank2_Image_BuildTime,
- CPU_Bank2_Image_Name,
- SW_Reset,
- Factory_Set_Initialization,
- }SERIAL_ModuleINFORMATION;
- typedef enum{
- Temperature = 0x10,
- Temperature_Offset,
- Temp_High_Threshold,
- Temp_High_Threshold_Default,
- Temp_High_Alarm,
- LED_TEST,
- Node,
- Type,
- PCB_Version,
- Serial_Number,
- Manufacture,
- Manufacture_Date,
- Temp_Shutdown_Path_ON_OFF,
- Freq_ID,
- Carrier_ID,
- Carrier_ON_OFF,
- }SERIAL_ENVIRONMENT_INVENTORY_t;
- typedef enum{
- DLI_P1_Level = 0x20,
- DLI_P2_Level,
- DLI_P3_Level,
- DLI_P4_Level,
- ULO_P1_Level,
- ULO_P2_Level,
- ULO_P3_Level,
- ULO_P4_Level,
- }SERIAL_Current_Volt_t;
- typedef struct{
- bool AGC1_En;
- bool AGC2_En;
- bool AGC3_En;
- bool AGC4_En;
- bool ALC1_En;
- bool ALC2_En;
- bool ALC3_En;
- bool ALC4_En;
- }AutoCtrl_st;
- typedef enum{
- BLUECELL_HEADER,
- BLUECELL_TYPE,
- BLUECELL_LENGTH_H,
- BLUECELL_LENGTH_L,
- BLUECELL_CRCINDEX,
- BLUECELL_DATA,
- }BLUECELLProt_st;
- typedef enum{
- MBIC_TableIndex_Unit_Type = 0,
- MBIC_TableIndex_Reseved = 1,
- MBIC_TableIndex_Number = 2,
- MBIC_TableIndex_Ref = 3,
- MBIC_TableIndex_Length = 4,
- MBIC_TableIndex_Max,
- }MBIC_TableLoadIndex_t;
- typedef enum{
- Bluecell_Table_ATT_DL1 = 0,
- Bluecell_Table_ATT_UL1,
- Bluecell_Table_ATT_DL2,
- Bluecell_Table_ATT_UL2,
- Bluecell_Table_ATT_DL3,
- Bluecell_Table_ATT_UL3,
- Bluecell_Table_ATT_DL4,
- Bluecell_Table_ATT_UL4,
- Bluecell_Table_DET_DL1,
- Bluecell_Table_DET_UL1,
- Bluecell_Table_DET_DL2,
- Bluecell_Table_DET_UL2,
- Bluecell_Table_DET_DL3,
- Bluecell_Table_DET_UL3,
- Bluecell_Table_DET_DL4,
- Bluecell_Table_DET_UL4,
- Bluecell_Table_TEMP_DL1,
- Bluecell_Table_TEMP_UL1,
- Bluecell_Table_TEMP_DL2,
- Bluecell_Table_TEMP_UL2,
- Bluecell_Table_TEMP_DL3,
- Bluecell_Table_TEMP_UL3,
- Bluecell_Table_TEMP_DL4,
- Bluecell_Table_TEMP_UL4,
- }Bluecell_tableIndex;
- typedef enum{
- MBIC_PROT_PREAMBLE0_INDEX,
- MBIC_PROT_PREAMBLE1_INDEX,
- MBIC_PROT_PREAMBLE2_INDEX,
- MBIC_PROT_PREAMBLE3_INDEX, //4
- MBIC_PROT_SUB_UID0_INDEX,
- MBIC_PROT_SUB_UID1_INDEX,
- MBIC_PROT_R_CODE_INDEX,
- MBIC_PROT_TR_ID0_INDEX,
- MBIC_PROT_TR_ID1_INDEX,
- MBIC_PROT_SEQ_NUM_INDEX, //10
- MBIC_PROT_TTL_INDEX,
- MBIC_PROT_TIME0_INDEX,
- MBIC_PROT_TIME1_INDEX,
- MBIC_PROT_TIME2_INDEX,
- MBIC_PROT_TIME3_INDEX,
- MBIC_PROT_TIME4_INDEX,
- MBIC_PROT_TIME5_INDEX,
- MBIC_PROT_ERR_RESP_INDEX,
- MBIC_PROT_CMD_INDEX, // 19
- MBIC_PROT_LENGTH_INDEX,
- MBIC_PROT_HEADERCHECKSUM_INDEX,
- MBIC_PROT_SUB_DATA_INDEX,
- MBIC_PROT_INDEX_MAX,
- };
- typedef enum{
- MBIC_Table_DL1_INDEX = 0,
- MBIC_Table_DL2_INDEX ,
- MBIC_Table_DL3_INDEX ,
- MBIC_Table_DL4_INDEX ,
- MBIC_Table_UL1_INDEX ,
- MBIC_Table_UL2_INDEX ,
- MBIC_Table_UL3_INDEX ,
- MBIC_Table_UL4_INDEX ,
- MBIC_Table_INDEX ,
- }MBIC_ALC_TableIndex;
- //5~ - 25
- typedef struct{
- int8_t DET_DL_0;
- int8_t DET_DL_1;
- int8_t DET_DL_2;
- int8_t DET_DL_3;
- int8_t DET_DL_4;
- int8_t DET_DL_5;
- int8_t DET_DL_6;
- int8_t DET_DL_7;
- int8_t DET_DL_8;
- int8_t DET_DL_9;
- int8_t DET_DL_10;
- int8_t DET_DL_11;
- int8_t DET_DL_12;
- int8_t DET_DL_13;
- int8_t DET_DL_14;
- int8_t DET_DL_15;
- int8_t DET_DL_16;
- int8_t DET_DL_17;
- int8_t DET_DL_18;
- int8_t DET_DL_19;
- int8_t DET_DL_20;
- int8_t DET_DL_21;
- int8_t DET_DL_22;
- int8_t DET_DL_23;
- int8_t DET_DL_24;
- int8_t DET_DL_25;
- int8_t DET_DL_26;
- int8_t DET_DL_27;
- int8_t DET_DL_28;
- int8_t DET_DL_29;
- int8_t DET_DL_30;
- }AGC_dBm_t;
- typedef struct{
- int8_t DET_UL_0;
- int8_t DET_UL_1;
- int8_t DET_UL_2;
- int8_t DET_UL_3;
- int8_t DET_UL_4;
- int8_t DET_UL_5;
- int8_t DET_UL_6;
- int8_t DET_UL_7;
- int8_t DET_UL_8;
- int8_t DET_UL_9;
- int8_t DET_UL_10;
- int8_t DET_UL_11;
- int8_t DET_UL_12;
- int8_t DET_UL_13;
- int8_t DET_UL_14;
- int8_t DET_UL_15;
- int8_t DET_UL_16;
- int8_t DET_UL_17;
- int8_t DET_UL_18;
- int8_t DET_UL_19;
- int8_t DET_UL_20;
- int8_t DET_UL_21;
- int8_t DET_UL_22;
- int8_t DET_UL_23;
- int8_t DET_UL_24;
- int8_t DET_UL_25;
- int8_t DET_UL_26;
- int8_t DET_UL_27;
- int8_t DET_UL_28;
- int8_t DET_UL_29;
- int8_t DET_UL_30;
- int8_t DET_UL_31;
- int8_t DET_UL_32;
- int8_t DET_UL_33;
- int8_t DET_UL_34;
- int8_t DET_UL_35;
- int8_t DET_UL_36;
- int8_t DET_UL_37;
- int8_t DET_UL_38;
- int8_t DET_UL_39;
- int8_t DET_UL_40;
- int8_t DET_UL_41;
- int8_t DET_UL_42;
- int8_t DET_UL_43;
- int8_t DET_UL_44;
- int8_t DET_UL_45;
- int8_t DET_UL_46;
- int8_t DET_UL_47;
- int8_t DET_UL_48;
- int8_t DET_UL_49;
- int8_t DET_UL_50;
- int8_t DET_UL_51;
- int8_t DET_UL_52;
- int8_t DET_UL_53;
- int8_t DET_UL_54;
- int8_t DET_UL_55;
- int8_t DET_UL_56;
- int8_t DET_UL_57;
- int8_t DET_UL_58;
- int8_t DET_UL_59;
- int8_t DET_UL_60;
- int8_t DET_UL_61;
- int8_t DET_UL_62;
- int8_t DET_UL_63;
- int8_t DET_UL_64;
- int8_t DET_UL_65;
- int8_t DET_UL_66;
- int8_t DET_UL_67;
- int8_t DET_UL_68;
- int8_t DET_UL_69;
- }ALC_dBm_t;
- typedef enum{
- DLI_RF_Path1_ON_OFF = 0x30,
- DLI_RF_Path2_ON_OFF,
- DLI_RF_Path3_ON_OFF,
- DLI_RF_Path4_ON_OFF,
- DLI_Gain_Atten1,
- DLI_Gain_Atten2,
- DLI_Gain_Atten3,
- DLI_Gain_Atten4,
- DLI_Gain_Atten_Offset1,
- DLI_Gain_Atten_Offset2,
- DLI_Gain_Atten_Offset3,
- DLI_Gain_Atten_Offset4,
- DLI_Level_High_Threshold,
- DLI_Level_Low_Threshold,
- DLI_Level_High_Low_Threshold_default,
- DLI_Level,
- DLI_Level_High_Alarm1=0x40,
- DLI_Level_High_Alarm2,
- DLI_Level_High_Alarm3,
- DLI_Level_High_Alarm4,
- DLI_Level_Low_Alarm1,
- DLI_Level_Low_Alarm2,
- DLI_Level_Low_Alarm3,
- DLI_Level_Low_Alarm4,
- SERIAL_DL_NULL0,
- DLI_FRBT_Atten,
- DLI_FRBT_D_Day,
- DLI_FRBT_Status,
- DLI_AGC_ON_OFF=0x50,
- DLI_AGC_Threshold,
- DLI_AGC_Threshold_Default,
- DLI_Shutdown_ON_OFF,
- DLI_Shutdown_Threshold,
- DLI_Shutdown_Threshold_Default,
- DLI_Shutdown_Count,
- DLI_AGC_Alarm1,
- DLI_AGC_Alarm2,
- DLI_AGC_Alarm3,
- DLI_AGC_Alarm4,
- DLI_Shutdown_Alarm1,
- DLI_Shutdown_Alarm2,
- DLI_Shutdown_Alarm3,
- DLI_Shutdown_Alarm4,
- }SERIAL_DL_t;
- typedef enum{
- ULO_RF_Path1_ON_OFF = 0x60,
- ULO_RF_Path2_ON_OFF,
- ULO_RF_Path3_ON_OFF,
- ULO_RF_Path4_ON_OFF,
- ULO_Gain_Atten1,
- ULO_Gain_Atten2,
- ULO_Gain_Atten3,
- ULO_Gain_Atten4,
- ULO_Gain_Atten_Offset1,
- ULO_Gain_Atten_Offset2,
- ULO_Gain_Atten_Offset3,
- ULO_Gain_Atten_Offset4,
- ULO_Level_High_Threshold,
- SERIAL_UL_NULL0,
- ULO_Level_High_Threshold_default,
- ULO_Level,
- ULO_Level_High_Alarm1=0x70,
- ULO_Level_High_Alarm2,
- ULO_Level_High_Alarm3,
- ULO_Level_High_Alarm4,
- ULO_SelfTest1,
- ULO_SelfTest2,
- ULO_SelfTest3,
- ULO_SelfTest4,
- ULO_ALC_ON_OFF=0x80,
- ULO_ALC_Threshold,
- ULO_ALC_Threshold_Default,
- ULO_Shutdown_ON_OFF,
- ULO_Shutdown_Threshold,
- ULO_Shutdown_Threshold_Default,
- ULO_Shutdown_Retry_Count,
- ULO_ALC_Alarm1,
- ULO_ALC_Alarm2,
- ULO_ALC_Alarm3,
- ULO_ALC_Alarm4,
- ULO_Shutdown_Alarm1,
- ULO_Shutdown_Alarm2,
- ULO_Shutdown_Alarm3,
- ULO_Shutdown_Alarm4,
- ULO_ALC_Atten,
- }SERIAL_UL_t;
- #define RETRYCNT_MAX 4
- #define MBIC_HEADER_SIZE 22
- #define MBIC_TAIL_SIZE 3
- #define MBIC_PREAMBLE0 0x16
- #define MBIC_PREAMBLE1 0x16
- #define MBIC_PREAMBLE2 0x16
- #define MBIC_PREAMBLE3 0x16
- #define MBIC_SUBUID0 0x00
- #define MBIC_SUBUID1 0xF1
- #define MBIC_RCODE
- #define MBIC_TRID
- #define MBIC_SEQNUM
- #define MBIC_TTL
- #define MBIC_TIME
- #define MBIC_ERRRESPONSE 0x00
- #define MBIC_CMD
- #define MBIC_LENGTH
- #define MBIC_CHECKSHUM_INDEX MBIC_HEADER_SIZE - 1 //CheckSUM REMOVE INDEX
- #define MBIC_ETX 0x03
- #define MBIC_NODE_MU 0x80
- #define MBIC_CPUVERSION 0x000000
- typedef enum{
- MBIC_Shutdown_DL1 = 0,
- MBIC_Shutdown_DL2,
- MBIC_Shutdown_DL3,
- MBIC_Shutdown_DL4,
- MBIC_Shutdown_UL1,
- MBIC_Shutdown_UL2,
- MBIC_Shutdown_UL3,
- MBIC_Shutdown_UL4,
- MBIC_Shutdown_MaxIndex,
- }MBIC_ShutdownIndex_t;
- enum DATATYPE
- {
- BLUECELL_SOFTWARERESET = 0,
- ATT_DL1_PATH = 0x12,
- ATT_UL1_PATH = 0x16,
- ATT_SelfTest1 = 0x18,
- ATT_DL2_PATH = 0x22,
- ATT_UL2_PATH = 0x26,
- ATT_SelfTest2 = 0x28,
- ATT_DL3_PATH = 0x32,
- ATT_UL3_PATH = 0x36,
- ATT_SelfTest3 = 0x38,
- ATT_DL4_PATH = 0x42,
- ATT_UL4_PATH = 0x46,
- ATT_SelfTest4 = 0x48,
- Bluecell_ULO_ALC_ON_OFF = 0x51,
- Bluecell_DLI_AGC_ON_OFF = 0x61,
- ATT_TableSet = 0x70,
- ATT_TableGet = 0x71,
- Bluecell_StatusReq = 0x77,
- Bluecell_StatusSave = 0x78,
- Bluecell_DL1_USER = 0x80,
- Bluecell_DL2_USER = 0x81,
- Bluecell_DL3_USER = 0x82,
- Bluecell_DL4_USER = 0x83,
- Bluecell_UL1_USER = 0x84,
- Bluecell_UL2_USER = 0x85,
- Bluecell_UL3_USER = 0x86,
- Bluecell_UL4_USER = 0x87,
- Bluecell_TEMP_USER = 0x88,
- Bluecell_DLI_AGC_Threshold,
- Bluecell_DLI_AGC_Threshold_Default,
- Bluecell_DLI_Shutdown_ON_OFF,
- Bluecell_DLI_Shutdown_Threshold,
- Bluecell_DLI_Shutdown_Threshold_Default,
- Bluecell_DLI_Shutdown_Count,
- Bluecell_DLI_Level_High_Threshold ,
- Bluecell_DLI_Level_Low_Threshold ,
- Bluecell_DLI_Level_High_Low_Threshold_default ,
- Bluecell_LED_TEST ,
- Bluecell_Temperature_Offset ,
- Bluecell_Temp_High_Threshold ,
- Bluecell_Temp_High_Threshold_Default ,
- Bluecell_ULO_Level_High_Threshold ,
- Bluecell_ULO_Level_High_Threshold_default ,
- Bluecell_ULO_ALC_Threshold ,
- Bluecell_ULO_ALC_Threshold_Default ,
- Bluecell_ULO_Shutdown_ON_OFF ,
- Bluecell_ULO_Shutdown_Threshold ,
- Bluecell_ULO_Shutdown_Threshold_Default ,
- Bluecell_ULO_Shutdown_Retry_Count ,
- Bluecell_Alarm_Mask,
- Bluecell_ATT_DL1,
- Bluecell_ATT_DL2,
- Bluecell_ATT_DL3,
- Bluecell_ATT_DL4,
- Bluecell_ATT_UL1,
- Bluecell_ATT_UL2,
- Bluecell_ATT_UL3,
- Bluecell_ATT_UL4,
- Bluecell_ATT_DL1_USER,
- Bluecell_ATT_DL2_USER,
- Bluecell_ATT_DL3_USER,
- Bluecell_ATT_DL4_USER,
- Bluecell_ATT_UL1_USER,
- Bluecell_ATT_UL2_USER,
- Bluecell_ATT_UL3_USER,
- Bluecell_ATT_UL4_USER,
- BLuecell_ATT_ALC1,
- BLuecell_ATT_ALC2,
- BLuecell_ATT_ALC3,
- BLuecell_ATT_ALC4,
- Bluecell_BankSelect,
- Bluecell_TimeSetting,
- Bluecell_Factory_Set,
- Bluecell_CarrierOnOff,
- Bluecell_PCBVersionSet,
- Bluecell_SerialNumberSet,
- Bluecell_ManufactureDateSet,
- Bluecell_DL_Det_ALL_Offset,
- Bluecell_UL_Det_Path1_Offset,
- Bluecell_UL_Det_Path2_Offset,
- Bluecell_UL_Det_Path3_Offset,
- Bluecell_UL_Det_Path4_Offset,
- };
- typedef enum{
- DLI_P1_Level_Table_Number = 0x00,
- DLI_P2_Level_Table_Number = 0x01,
- DLI_P3_Level_Table_Number = 0x02,
- DLI_P4_Level_Table_Number = 0x03,
- ULO_P1_Level_Table_Number = 0x10,
- ULO_P2_Level_Table_Number = 0x11,
- ULO_P3_Level_Table_Number = 0x12,
- ULO_P4_Level_Table_Number = 0x13,
- DLI_P1_ATT_Temp_guarantee_Table_Number = 0x20,
- DLI_P2_ATT_Temp_guarantee_Table_Number = 0x21,
- DLI_P3_ATT_Temp_guarantee_Table_Number = 0x22,
- DLI_P4_ATT_Temp_guarantee_Table_Number = 0x23,
- ULO_P1_ATT_Temp_guarantee_Table_Number = 0x30,
- ULO_P2_ATT_Temp_guarantee_Table_Number = 0x31,
- ULO_P3_ATT_Temp_guarantee_Table_Number = 0x32,
- ULO_P4_ATT_Temp_guarantee_Table_Number = 0x33,
- DLI_P1_ATT_Accuracy_Table_Number = 0x40,
- DLI_P2_ATT_Accuracy_Table_Number = 0x41,
- DLI_P3_ATT_Accuracy_Table_Number = 0x42,
- DLI_P4_ATT_Accuracy_Table_Number = 0x43,
- ULO_P1_ATT_Accuracy_Table_Number = 0x50,
- ULO_P2_ATT_Accuracy_Table_Number = 0x51,
- ULO_P3_ATT_Accuracy_Table_Number = 0x52,
- ULO_P4_ATT_Accuracy_Table_Number = 0x53,
- }MBIC_Table_Number;
- #define ATTENTABLEDLUL_LENGTH 64
- #define ATTENTABLEDET_DL_LENGTH 33
- #define ATTENTABLEDET_UL_LENGTH 46
- #define ATTENTABLE_TEMP_LENGTH 10
- #define ATTENTABLEDL_REF 0
- #define ATTENTABLEUL_REF 0
- #define ATTENTABLEDET_DL_REF 7
- #define ATTENTABLEDET_UL_REF -15
- #define ATTENTABLE_TEMP_REF -10
- #define UNIT_TYPE_MBIC 0x01
- /*FLAG BIT START */
- #define ENVIRONMENT_TEMPHIGH 0x80
- #define ALARM_DLI_P4_LEVEL_LOW 0x80
- #define ALARM_DLI_P3_LEVEL_LOW 0x40
- #define ALARM_DLI_P2_LEVEL_LOW 0x20
- #define ALARM_DLI_P1_LEVEL_LOW 0x10
- #define ALARM_DLI_P4_LEVEL_HIGH 0x08
- #define ALARM_DLI_P3_LEVEL_HIGH 0x04
- #define ALARM_DLI_P2_LEVEL_HIGH 0x02
- #define ALARM_DLI_P1_LEVEL_HIGH 0x01
- #define ALARM_AGC_P4 0x80
- #define ALARM_AGC_P3 0x40
- #define ALARM_AGC_P2 0x20
- #define ALARM_AGC_P1 0x10
- #define ALARM_DLI_SHUTDOWN_P4 0x08
- #define ALARM_DLI_SHUTDOWN_P3 0x04
- #define ALARM_DLI_SHUTDOWN_P2 0x02
- #define ALARM_DLI_SHUTDOWN_P1 0x01
- #define ALARM_ULO_P4_LEVEL_HIGH 0x08
- #define ALARM_ULO_P3_LEVEL_HIGH 0x04
- #define ALARM_ULO_P2_LEVEL_HIGH 0x02
- #define ALARM_ULO_P1_LEVEL_HIGH 0x01
- #define ALARM_ALC_P4 0x80
- #define ALARM_ALC_P3 0x40
- #define ALARM_ALC_P2 0x20
- #define ALARM_ALC_P1 0x10
- #define ALARM_ULO_SHUTDOWN_P4 0x08
- #define ALARM_ULO_SHUTDOWN_P3 0x04
- #define ALARM_ULO_SHUTDOWN_P2 0x02
- #define ALARM_ULO_SHUTDOWN_P1 0x01
- /*FLAG BIT END*/
- #define MBIC_DLI_AGC_Threshold_Default_H 0xFF
- #define MBIC_DLI_AGC_Threshold_Default_L 0xF6
- #define MBIC_DLI_Shutdown_Threshold_Default_H 0xFF
- #define MBIC_DLI_Shutdown_Threshold_Default_L 0xFF
- #define MBIC_DLI_Level_High_Threshold_default_H 0x00
- #define MBIC_DLI_Level_High_Threshold_default_L 0x07
- #define MBIC_DLI_Level_Low_Threshold_default_H 0xFF
- #define MBIC_DLI_Level_Low_Threshold_default_L 0xD5
- #define MBIC_ULO_Level_High_Threshold_Default_H 0xFF
- #define MBIC_ULO_Level_High_Threshold_Default_L 0xEE
- #define MBIC_Temp_High_Threshold_Default 0x50
- #define MBIC_ULO_ALC_Threshold_Default_H 0xFF
- #define MBIC_ULO_ALC_Threshold_Default_L 0xD8
- #define MBIC_ULO_Shutdown_Threshold_Default_H 0xFF
- #define MBIC_ULO_Shutdown_Threshold_Default_L 0xF0
- #define HIDDENATTEN 5 * 10
- typedef enum{
- ENVIRONMENT = 0,
- DL1,
- DL2,
- UL1,
- UL2,
- MAX_ALARM_Len,
- }AlarmList;
- typedef struct{
- uint8_t bluecell_User_DL1_H; uint8_t bluecell_User_DL1_L;
- uint8_t bluecell_User_DL2_H; uint8_t bluecell_User_DL2_L;
- uint8_t bluecell_User_DL3_H; uint8_t bluecell_User_DL3_L;
- uint8_t bluecell_User_DL4_H; uint8_t bluecell_User_DL4_L;
- uint8_t bluecell_User_UL1_H; uint8_t bluecell_User_UL1_L;
- uint8_t bluecell_User_UL2_H; uint8_t bluecell_User_UL2_L;
- uint8_t bluecell_User_UL3_H; uint8_t bluecell_User_UL3_L;
- uint8_t bluecell_User_UL4_H; uint8_t bluecell_User_UL4_L;
- }USER_ATTEN_st;
- typedef enum{
- MBIC_BOOT_MARK = 0,
- MBIC_BOOT_TYPE = 9 ,
- MBIC_BOOT_FILE_TYPE= 10,
- MBIC_BOOT_VERSION = 11,
- MBIC_BOOT_FILENAME = 14,
- MBIC_BOOT_CREATION_TIME= 55,
- MBIC_BOOT_LENGTH = 61,
- MBIC_BOOT_CRC =65,
- MBIC_BOOT_RESERVED = 69,
- MBIC_BOOT_DATA = 128,
- }HFR_BootLoader_Index_;
- typedef enum{
- HFR_BANK1 = 1,
- HFR_BANK2 = 2,
- HFR_FACTORY = 3,
- }HFR_BootBankIndex_;
- typedef enum{
- HFR_BANK1_SEL = 1,
- HFR_BANK2_SEL = 2,
- HFR_AUTO_SEL = 3,
- }HFR_BootSelIndex_;
- typedef struct{
- uint8_t bluecell_header;
- uint8_t bluecell_type;
- uint8_t bluecell_length;
- uint8_t bluecell_crcindex;
- uint8_t Selftest1;
- uint8_t Selftest2;
- uint8_t Selftest3;
- uint8_t Selftest4;
- uint8_t ATT_DL1_PATH;
- uint8_t ATT_DL2_PATH;
- uint8_t ATT_DL3_PATH;
- uint8_t ATT_DL4_PATH;
- uint8_t ATT_UL1_PATH;
- uint8_t ATT_UL2_PATH;
- uint8_t ATT_UL3_PATH;
- uint8_t ATT_UL4_PATH;
- uint8_t ATT_DL1_H;
- uint8_t ATT_DL1_L;
- uint8_t ATT_DL2_H;
- uint8_t ATT_DL2_L;
- uint8_t ATT_DL3_H;
- uint8_t ATT_DL3_L;
- uint8_t ATT_DL4_H;
- uint8_t ATT_DL4_L;
- uint8_t ATT_UL1_H;
- uint8_t ATT_UL1_L;
- uint8_t ATT_UL2_H;
- uint8_t ATT_UL2_L;
- uint8_t ATT_UL3_H;
- uint8_t ATT_UL3_L;
- uint8_t ATT_UL4_H;
- uint8_t ATT_UL4_L;
- uint8_t ULO_P1_Level1_H;
- uint8_t ULO_P1_Level1_L;
- uint8_t ULO_P2_Level2_H;
- uint8_t ULO_P2_Level2_L;
- uint8_t ULO_P3_Level3_H;
- uint8_t ULO_P3_Level3_L;
- uint8_t ULO_P4_Level4_H;
- uint8_t ULO_P4_Level4_L;
- uint8_t DLI_P1_Level1_H;
- uint8_t DLI_P1_Level1_L;
- uint8_t DLI_P2_Level2_H;
- uint8_t DLI_P2_Level2_L;
- uint8_t DLI_P3_Level3_H;
- uint8_t DLI_P3_Level3_L;
- uint8_t DLI_P4_Level4_H;
- uint8_t DLI_P4_Level4_L;
- int8_t DET_TEMP;
- uint8_t DLI_AGC_ON_OFF;
- uint8_t ULO_ALC_ON_OFF;
- uint8_t ULO_Level1_H;
- uint8_t ULO_Level1_L;
- uint8_t ULO_Level2_H;
- uint8_t ULO_Level2_L;
- uint8_t ULO_Level3_H;
- uint8_t ULO_Level3_L;
- uint8_t ULO_Level4_H;
- uint8_t ULO_Level4_L;
- uint8_t DLI_Level1_H;
- uint8_t DLI_Level1_L;
- uint8_t DLI_Level2_H;
- uint8_t DLI_Level2_L;
- uint8_t DLI_Level3_H;
- uint8_t DLI_Level3_L;
- uint8_t DLI_Level4_H;
- uint8_t DLI_Level4_L;
- uint8_t ULO_ALC_Threshold_H;
- uint8_t ULO_ALC_Threshold_L;
- uint8_t bluecell_User_DL1_H;
- uint8_t bluecell_User_DL1_L;
- uint8_t bluecell_User_DL2_H;
- uint8_t bluecell_User_DL2_L;
- uint8_t bluecell_User_DL3_H;
- uint8_t bluecell_User_DL3_L;
- uint8_t bluecell_User_DL4_H;
- uint8_t bluecell_User_DL4_L;
- uint8_t bluecell_User_UL1_H;
- uint8_t bluecell_User_UL1_L;
- uint8_t bluecell_User_UL2_H;
- uint8_t bluecell_User_UL2_L;
- uint8_t bluecell_User_UL3_H;
- uint8_t bluecell_User_UL3_L;
- uint8_t bluecell_User_UL4_H;
- uint8_t bluecell_User_UL4_L;
- uint8_t bluecell_User_TEMP_H;
- uint8_t bluecell_User_TEMP_L;
- int8_t bluecell_User_TEMP_OFFSET;
- int8_t Temp_High_Threshold;
- int8_t Temp_High_Threshold_Default;
- uint8_t DLI_Level_High_Threshold_H;
- uint8_t DLI_Level_High_Threshold_L;
- uint8_t DLI_Level_Low_Threshold_H;
- uint8_t DLI_Level_Low_Threshold_L;
- uint8_t DLI_Level_High_Low_Threshold_default;
- uint8_t ALARM_TEMP_HIGH; //bit
- uint8_t ALARM_DLI_Level;
- uint8_t ALARM_DLI_SHTUTDOWN;
- uint8_t ALARM_DLI_AGC_Alarm;
- uint8_t ALARM_ULO_ALC_Alarm;
- uint8_t ALARM_ULO_Level;
- uint8_t ALARM_ULO_SHTUTDOWN;
- uint8_t ALARM_MASK1;
- uint8_t ALARM_MASK2;
- uint8_t ALARM_MASK3;
- uint8_t ALARM_MASK4;
- uint8_t ALARM_MASK5;
- uint8_t ALARM_TESTMODE;
- uint8_t ALARM_Test_Dummy1;
- uint8_t ALARM_Test_Dummy2;
- uint8_t ALARM_Test_Dummy3;
- uint8_t ALARM_Test_Dummy4;
- uint8_t ALARM_Test_Dummy5;
- uint8_t CPUVERSION1;
- uint8_t CPUVERSION2;
- uint8_t CPUVERSION3;
- uint8_t CPU_Current_Bank;
- uint8_t CPU_Bank_Select;//Reboot_by;
- uint8_t CPU_Bank1_Image_Version1;
- uint8_t CPU_Bank1_Image_Version2;
- uint8_t CPU_Bank1_Image_Version3;
- uint8_t CPU_Bank1_Image_BuildTime1;
- uint8_t CPU_Bank1_Image_BuildTime2;
- uint8_t CPU_Bank1_Image_BuildTime3;
- uint8_t CPU_Bank1_Image_BuildTime4;
- uint8_t CPU_Bank1_Image_BuildTime5;
- uint8_t CPU_Bank1_Image_BuildTime6;
- uint8_t CPU_Bank1_Image_Name[32];
- uint8_t CPU_Bank2_Image_Version1;
- uint8_t CPU_Bank2_Image_Version2;
- uint8_t CPU_Bank2_Image_Version3;
- uint8_t CPU_Bank2_Image_BuildTime1;
- uint8_t CPU_Bank2_Image_BuildTime2;
- uint8_t CPU_Bank2_Image_BuildTime3;
- uint8_t CPU_Bank2_Image_BuildTime4;
- uint8_t CPU_Bank2_Image_BuildTime5;
- uint8_t CPU_Bank2_Image_BuildTime6;
- uint8_t CPU_Bank2_Image_Name[32];
- uint8_t S_W_Reset;
- uint8_t Factory_Set_Initialization;
- uint8_t Temp_High_Alarm;
- uint8_t LED_TEST;
- uint8_t NODE;
- uint8_t Type;
- uint8_t PCB_Version[2];
- uint8_t Serial_Number[20]; // INDEX : 20
- uint8_t Manufacture;
- uint8_t Manufacture_Date[3];
- uint8_t Freq_ID;
- uint8_t Carrier_ID;
- uint8_t Carrier_ON_OFF;
- uint8_t DLI_Level_High_Alarm1;
- uint8_t DLI_Level_High_Alarm2;
- uint8_t DLI_Level_High_Alarm3;
- uint8_t DLI_Level_High_Alarm4;
- uint8_t DLI_Level_Low_Alarm1;
- uint8_t DLI_Level_Low_Alarm2;
- uint8_t DLI_Level_Low_Alarm3;
- uint8_t DLI_Level_Low_Alarm4;
- uint8_t DLI_FRBT_Atten1_H;
- uint8_t DLI_FRBT_Atten1_L;
- uint8_t DLI_FRBT_Atten2_H;
- uint8_t DLI_FRBT_Atten2_L;
- uint8_t DLI_FRBT_Atten3_H;
- uint8_t DLI_FRBT_Atten3_L;
- uint8_t DLI_FRBT_Atten4_H;
- uint8_t DLI_FRBT_Atten4_L;
- uint8_t DLI_FRBT_D_Day;
- uint8_t DLI_FRBT_Status;
- uint8_t DLI_AGC_Threshold_H;
- uint8_t DLI_AGC_Threshold_L;
- uint8_t DLI_AGC_Threshold_default;
- uint8_t DLI_Shutdown_ON_OFF;
- uint8_t DLI_Shutdown_Threshold_H;
- uint8_t DLI_Shutdown_Threshold_L;
- uint8_t DLI_Shutdown_Threshold_Default;
- uint8_t DLI_Shutdown_Retry_Count1;
- uint8_t DLI_Shutdown_Retry_Count2;
- uint8_t DLI_Shutdown_Retry_Count3;
- uint8_t DLI_Shutdown_Retry_Count4;
- uint8_t DLI_AGC_Alarm1;
- uint8_t DLI_AGC_Alarm2;
- uint8_t DLI_AGC_Alarm3;
- uint8_t DLI_AGC_Alarm4;
- uint8_t DLI_Shutdown_Alarm1;
- uint8_t DLI_Shutdown_Alarm2;
- uint8_t DLI_Shutdown_Alarm3;
- uint8_t DLI_Shutdown_Alarm4;
- uint8_t ULO_Level_High_Threshold_H;
- uint8_t ULO_Level_High_Threshold_L;
- uint8_t ULO_Level_High_Threshold_default;
- uint8_t ULO_Level_High_Alarm1;
- uint8_t ULO_Level_High_Alarm2;
- uint8_t ULO_Level_High_Alarm3;
- uint8_t ULO_Level_High_Alarm4;
- uint8_t ULO_ALC_Threshold_Default;
- uint8_t ULO_Shutdown_ON_OFF;
- uint8_t ULO_Shutdown_Threshold_H;
- uint8_t ULO_Shutdown_Threshold_L;
- uint8_t ULO_Shutdown_Threshold_Default;
- uint8_t ULO_Shutdown_Retry_Count1;
- uint8_t ULO_Shutdown_Retry_Count2;
- uint8_t ULO_Shutdown_Retry_Count3;
- uint8_t ULO_Shutdown_Retry_Count4;
- uint8_t ULO_ALC_Alarm1;
- uint8_t ULO_ALC_Alarm2;
- uint8_t ULO_ALC_Alarm3;
- uint8_t ULO_ALC_Alarm4;
- uint8_t ULO_Shutdown_Alarm1;
- uint8_t ULO_Shutdown_Alarm2;
- uint8_t ULO_Shutdown_Alarm3;
- uint8_t ULO_Shutdown_Alarm4;
- uint8_t MBIC_ULO_ALC_Atten1_H;
- uint8_t MBIC_ULO_ALC_Atten1_L;
- uint8_t MBIC_ULO_ALC_Atten2_H;
- uint8_t MBIC_ULO_ALC_Atten2_L;
- uint8_t MBIC_ULO_ALC_Atten3_H;
- uint8_t MBIC_ULO_ALC_Atten3_L;
- uint8_t MBIC_ULO_ALC_Atten4_H;
- uint8_t MBIC_ULO_ALC_Atten4_L;
- int8_t MBIC_DLI_P1_Level_Table_Ref;
- int8_t MBIC_DLI_P2_Level_Table_Ref;
- int8_t MBIC_DLI_P3_Level_Table_Ref;
- int8_t MBIC_DLI_P4_Level_Table_Ref;
- int8_t MBIC_ULO_P1_Level_Table_Ref;
- int8_t MBIC_ULO_P2_Level_Table_Ref;
- int8_t MBIC_ULO_P3_Level_Table_Ref;
- int8_t MBIC_ULO_P4_Level_Table_Ref;
- int8_t MBIC_TEMP_DL_P1_Level_Table_Ref;
- int8_t MBIC_TEMP_DL_P2_Level_Table_Ref;
- int8_t MBIC_TEMP_DL_P3_Level_Table_Ref;
- int8_t MBIC_TEMP_DL_P4_Level_Table_Ref;
- int8_t MBIC_TEMP_UL_P1_Level_Table_Ref;
- int8_t MBIC_TEMP_UL_P2_Level_Table_Ref;
- int8_t MBIC_TEMP_UL_P3_Level_Table_Ref;
- int8_t MBIC_TEMP_UL_P4_Level_Table_Ref;
- int8_t MBIC_DLI_P1_Table_Length;
- int8_t MBIC_DLI_P2_Table_Length;
- int8_t MBIC_DLI_P3_Table_Length;
- int8_t MBIC_DLI_P4_Table_Length;
- int8_t MBIC_ULO_P1_Table_Length;
- int8_t MBIC_ULO_P2_Table_Length;
- int8_t MBIC_ULO_P3_Table_Length;
- int8_t MBIC_ULO_P4_Table_Length;
- int8_t MBIC_DLI_P1_Level_Table_Length;
- int8_t MBIC_DLI_P2_Level_Table_Length;
- int8_t MBIC_DLI_P3_Level_Table_Length;
- int8_t MBIC_DLI_P4_Level_Table_Length;
- int8_t MBIC_ULO_P1_Level_Table_Length;
- int8_t MBIC_ULO_P2_Level_Table_Length;
- int8_t MBIC_ULO_P3_Level_Table_Length;
- int8_t MBIC_ULO_P4_Level_Table_Length;
- int8_t MBIC_TEMP_DL_P1_Level_Table_Length;
- int8_t MBIC_TEMP_DL_P2_Level_Table_Length;
- int8_t MBIC_TEMP_DL_P3_Level_Table_Length;
- int8_t MBIC_TEMP_DL_P4_Level_Table_Length;
- int8_t MBIC_TEMP_UL_P1_Level_Table_Length;
- int8_t MBIC_TEMP_UL_P2_Level_Table_Length;
- int8_t MBIC_TEMP_UL_P3_Level_Table_Length;
- int8_t MBIC_TEMP_UL_P4_Level_Table_Length;
- uint8_t DL_Det_ALL_Offset;
- uint8_t MBIC_Download_Auto_Restart_Set;
- uint8_t Path_TempSave_Bit;/*DL1 / DL 2 /DL3 /DL4 /UL1/UL2/UL3/UL4*/
- int8_t UL_Det_Path_Offset[2];
- uint8_t bluecell_crc_H;
- uint8_t bluecell_crc_L;
- uint8_t bluecell_etx;
- }BLUESTATUS_st;
- /*ssizeof 320 byte*/
- typedef struct{
- uint8_t Table_0_0_dBm;
- uint8_t Table_0_5_dBm;
- uint8_t Table_1_0_dBm;
- uint8_t Table_1_5_dBm;
- uint8_t Table_2_0_dBm;
- uint8_t Table_2_5_dBm;
- uint8_t Table_3_0_dBm;
- uint8_t Table_3_5_dBm;
- uint8_t Table_4_0_dBm;
- uint8_t Table_4_5_dBm;
- uint8_t Table_5_0_dBm;
- uint8_t Table_5_5_dBm;
- uint8_t Table_6_0_dBm;
- uint8_t Table_6_5_dBm;
- uint8_t Table_7_0_dBm;
- uint8_t Table_7_5_dBm;
- uint8_t Table_8_0_dBm;
- uint8_t Table_8_5_dBm;
- uint8_t Table_9_0_dBm;
- uint8_t Table_9_5_dBm;
- uint8_t Table_10_0_dBm;
- uint8_t Table_10_5_dBm;
- uint8_t Table_11_0_dBm;
- uint8_t Table_11_5_dBm;
- uint8_t Table_12_0_dBm;
- uint8_t Table_12_5_dBm;
- uint8_t Table_13_0_dBm;
- uint8_t Table_13_5_dBm;
- uint8_t Table_14_0_dBm;
- uint8_t Table_14_5_dBm;
- uint8_t Table_15_0_dBm;
- uint8_t Table_15_5_dBm;
- uint8_t Table_16_0_dBm;
- uint8_t Table_16_5_dBm;
- uint8_t Table_17_0_dBm;
- uint8_t Table_17_5_dBm;
- uint8_t Table_18_0_dBm;
- uint8_t Table_18_5_dBm;
- uint8_t Table_19_0_dBm;
- uint8_t Table_19_5_dBm;
- uint8_t Table_20_0_dBm;
- uint8_t Table_20_5_dBm;
- uint8_t Table_21_0_dBm;
- uint8_t Table_21_5_dBm;
- uint8_t Table_22_0_dBm;
- uint8_t Table_22_5_dBm;
- uint8_t Table_23_0_dBm;
- uint8_t Table_23_5_dBm;
- uint8_t Table_24_0_dBm;
- uint8_t Table_24_5_dBm;
- uint8_t Table_25_0_dBm;
- uint8_t Table_25_5_dBm;
- uint8_t Table_26_0_dBm;
- uint8_t Table_26_5_dBm;
- uint8_t Table_27_0_dBm;
- uint8_t Table_27_5_dBm;
- uint8_t Table_28_0_dBm;
- uint8_t Table_28_5_dBm;
- uint8_t Table_29_0_dBm;
- uint8_t Table_29_5_dBm;
- uint8_t Table_30_0_dBm;
- uint8_t Table_30_5_dBm;
- uint8_t Table_31_0_dBm;
- uint8_t Table_31_5_dBm;
- uint8_t Table_xx_x_1_dBm;
- uint8_t Table_xx_x_2_dBm;
- uint8_t Table_xx_x_3_dBm;
- uint8_t Table_xx_x_4_dBm;
- uint8_t Table_xx_x_5_dBm;
- uint8_t Table_xx_x_6_dBm;
- uint8_t Table_xx_x_7_dBm;
- uint8_t Table_xx_x_8_dBm;
- uint8_t Table_xx_x_9_dBm;
- uint8_t Table_xx_x_10_dBm;
- uint8_t Table_xx_x_11_dBm;
- uint8_t Table_xx_x_12_dBm;
- uint8_t Table_xx_x_13_dBm;
- uint8_t Table_xx_x_14_dBm;
- uint8_t Table_xx_x_15_dBm;
- uint8_t Table_xx_x_16_dBm;
- uint8_t Table_xx_x_17_dBm;
- uint8_t Table_xx_x_18_dBm;
- uint8_t Table_xx_x_19_dBm;
- uint8_t Table_xx_x_20_dBm;
- uint8_t Table_xx_x_21_dBm;
- uint8_t Table_xx_x_22_dBm;
- uint8_t Table_xx_x_23_dBm;
- uint8_t Table_xx_x_24_dBm;
- uint8_t Table_xx_x_25_dBm;
- uint8_t Table_xx_x_26_dBm;
- uint8_t Table_xx_x_27_dBm;
- uint8_t Table_xx_x_28_dBm;
- uint8_t Table_xx_x_29_dBm;
- uint8_t Table_xx_x_30_dBm;
- int8_t Table_Ref;
- int8_t Table_Length;
- }ATT_TABLE_st;
- typedef struct{
- uint8_t Table_Det5_dBm_H ;
- uint8_t Table_Det5_dBm_L ;
- uint8_t Table_Det4_dBm_H ;
- uint8_t Table_Det4_dBm_L ;
- uint8_t Table_Det3_dBm_H ;
- uint8_t Table_Det3_dBm_L ;
- uint8_t Table_Det2_dBm_H ;
- uint8_t Table_Det2_dBm_L ;
- uint8_t Table_Det1_dBm_H ;
- uint8_t Table_Det1_dBm_L ;
- uint8_t Table_Det0_dBm_H ;
- uint8_t Table_Det0_dBm_L ;
- uint8_t Table_Det_1_dBm_H ;
- uint8_t Table_Det_1_dBm_L ;
- uint8_t Table_Det_2_dBm_H ;
- uint8_t Table_Det_2_dBm_L ;
- uint8_t Table_Det_3_dBm_H ;
- uint8_t Table_Det_3_dBm_L ;
- uint8_t Table_Det_4_dBm_H ;
- uint8_t Table_Det_4_dBm_L ;
- uint8_t Table_Det_5_dBm_H ;
- uint8_t Table_Det_5_dBm_L ;
- uint8_t Table_Det_6_dBm_H ;
- uint8_t Table_Det_6_dBm_L ;
- uint8_t Table_Det_7_dBm_H ;
- uint8_t Table_Det_7_dBm_L ;
- uint8_t Table_Det_8_dBm_H ;
- uint8_t Table_Det_8_dBm_L ;
- uint8_t Table_Det_9_dBm_H ;
- uint8_t Table_Det_9_dBm_L ;
- uint8_t Table_Det_10_dBm_H ;
- uint8_t Table_Det_10_dBm_L ;
- uint8_t Table_Det_11_dBm_H ;
- uint8_t Table_Det_11_dBm_L ;
- uint8_t Table_Det_12_dBm_H ;
- uint8_t Table_Det_12_dBm_L ;
- uint8_t Table_Det_13_dBm_H ;
- uint8_t Table_Det_13_dBm_L ;
- uint8_t Table_Det_14_dBm_H ;
- uint8_t Table_Det_14_dBm_L ;
- uint8_t Table_Det_15_dBm_H ;
- uint8_t Table_Det_15_dBm_L ;
- uint8_t Table_Det_16_dBm_H ;
- uint8_t Table_Det_16_dBm_L ;
- uint8_t Table_Det_17_dBm_H ;
- uint8_t Table_Det_17_dBm_L ;
- uint8_t Table_Det_18_dBm_H ;
- uint8_t Table_Det_18_dBm_L ;
- uint8_t Table_Det_19_dBm_H ;
- uint8_t Table_Det_19_dBm_L ;
- uint8_t Table_Det_20_dBm_H ;
- uint8_t Table_Det_20_dBm_L ;
- uint8_t Table_Det_21_dBm_H ;
- uint8_t Table_Det_21_dBm_L ;
- uint8_t Table_Det_22_dBm_H ;
- uint8_t Table_Det_22_dBm_L ;
- uint8_t Table_Det_23_dBm_H ;
- uint8_t Table_Det_23_dBm_L ;
- uint8_t Table_Det_24_dBm_H ;
- uint8_t Table_Det_24_dBm_L ;
- uint8_t Table_Det_25_dBm_H ;
- uint8_t Table_Det_25_dBm_L ;
- uint8_t Table_Det_xx1_dBm_H ;
- uint8_t Table_Det_xx1_dBm_L ;
- uint8_t Table_Det_xx2_dBm_H ;
- uint8_t Table_Det_xx2_dBm_L ;
- uint8_t Table_Det_xx3_dBm_H ;
- uint8_t Table_Det_xx3_dBm_L ;
- uint8_t Table_Det_xx4_dBm_H ;
- uint8_t Table_Det_xx4_dBm_L ;
- uint8_t Table_Det_xx5_dBm_H ;
- uint8_t Table_Det_xx5_dBm_L ;
- uint8_t Table_Det_xx6_dBm_H ;
- uint8_t Table_Det_xx6_dBm_L ;
- uint8_t Table_Det_xx7_dBm_H ;
- uint8_t Table_Det_xx7_dBm_L ;
- uint8_t Table_Det_xx8_dBm_H ;
- uint8_t Table_Det_xx8_dBm_L ;
- uint8_t Table_Det_xx9_dBm_H ;
- uint8_t Table_Det_xx9_dBm_L ;
- uint8_t Table_Det_xx10_dBm_H ;
- uint8_t Table_Det_xx10_dBm_L ;
- uint8_t Table_Det_xx11_dBm_H ;
- uint8_t Table_Det_xx11_dBm_L ;
- uint8_t Table_Det_xx12_dBm_H ;
- uint8_t Table_Det_xx12_dBm_L ;
- uint8_t Table_Det_xx13_dBm_H ;
- uint8_t Table_Det_xx13_dBm_L ;
- uint8_t Table_Det_xx14_dBm_H ;
- uint8_t Table_Det_xx14_dBm_L ;
- uint8_t Table_Det_xx15_dBm_H ;
- uint8_t Table_Det_xx15_dBm_L ;
- uint8_t Table_Det_xx16_dBm_H ;
- uint8_t Table_Det_xx16_dBm_L ;
- uint8_t Table_Det_xx17_dBm_H ;
- uint8_t Table_Det_xx17_dBm_L ;
- uint8_t Table_Det_xx18_dBm_H ;
- uint8_t Table_Det_xx18_dBm_L ;
- uint8_t Table_Det_xx19_dBm_H ;
- uint8_t Table_Det_xx19_dBm_L ;
- uint8_t Table_Det_xx20_dBm_H ;
- uint8_t Table_Det_xx20_dBm_L ;
- uint8_t Table_Det_xx21_dBm_H ;
- uint8_t Table_Det_xx21_dBm_L ;
- uint8_t Table_Det_xx22_dBm_H ;
- uint8_t Table_Det_xx22_dBm_L ;
- uint8_t Table_Det_xx23_dBm_H ;
- uint8_t Table_Det_xx23_dBm_L ;
- uint8_t Table_Det_xx24_dBm_H ;
- uint8_t Table_Det_xx24_dBm_L ;
- uint8_t Table_Det_xx25_dBm_H ;
- uint8_t Table_Det_xx25_dBm_L ;
- uint8_t Table_Det_xx26_dBm_H ;
- uint8_t Table_Det_xx26_dBm_L ;
- uint8_t Table_Det_xx27_dBm_H ;
- uint8_t Table_Det_xx27_dBm_L ;
- uint8_t Table_Det_xx28_dBm_H ;
- uint8_t Table_Det_xx28_dBm_L ;
- uint8_t Table_Det_xx29_dBm_H ;
- uint8_t Table_Det_xx29_dBm_L ;
- uint8_t Table_Det_xx30_dBm_H ;
- uint8_t Table_Det_xx30_dBm_L ;
- uint8_t Table_Det_xx31_dBm_H ;
- uint8_t Table_Det_xx31_dBm_L ;
- uint8_t Table_Det_xx32_dBm_H ;
- uint8_t Table_Det_xx32_dBm_L ;
- uint8_t Table_Det_xx33_dBm_H ;
- uint8_t Table_Det_xx33_dBm_L ;
- uint8_t Table_Det_xx34_dBm_H ;
- uint8_t Table_Det_xx34_dBm_L ;
- uint8_t Table_Det_xx35_dBm_H ;
- uint8_t Table_Det_xx35_dBm_L ;
- uint8_t Table_Det_xx36_dBm_H ;
- uint8_t Table_Det_xx36_dBm_L ;
- uint8_t Table_Det_xx37_dBm_H ;
- uint8_t Table_Det_xx37_dBm_L ;
- uint8_t Table_Det_xx38_dBm_H ;
- uint8_t Table_Det_xx38_dBm_L ;
- uint8_t Table_Det_xx39_dBm_H ;
- uint8_t Table_Det_xx39_dBm_L ;
- uint8_t Table_Det_xx40_dBm_H ;
- uint8_t Table_Det_xx40_dBm_L ;
- uint8_t Table_Det_xx41_dBm_H ;
- uint8_t Table_Det_xx41_dBm_L ;
- uint8_t Table_Det_xx42_dBm_H ;
- uint8_t Table_Det_xx42_dBm_L ;
- uint8_t Table_Det_xx43_dBm_H ;
- uint8_t Table_Det_xx43_dBm_L ;
- uint8_t Table_Det_xx44_dBm_H ;
- uint8_t Table_Det_xx44_dBm_L ;
- uint8_t Table_Det_xx45_dBm_H ;
- uint8_t Table_Det_xx45_dBm_L ;
- uint8_t Table_Det_xx46_dBm_H ;
- uint8_t Table_Det_xx46_dBm_L ;
- uint8_t Table_Det_xx47_dBm_H ;
- uint8_t Table_Det_xx47_dBm_L ;
- uint8_t Table_Det_xx48_dBm_H ;
- uint8_t Table_Det_xx48_dBm_L ;
- int8_t Table_Ref ;
- int8_t Table_Length ;
- }DET_TABLEDL_st;
- typedef struct{
- uint8_t Table_Det_15_dBm_H ;
- uint8_t Table_Det_15_dBm_L ;
- uint8_t Table_Det_16_dBm_H ;
- uint8_t Table_Det_16_dBm_L ;
- uint8_t Table_Det_17_dBm_H ;
- uint8_t Table_Det_17_dBm_L ;
- uint8_t Table_Det_18_dBm_H ;
- uint8_t Table_Det_18_dBm_L ;
- uint8_t Table_Det_19_dBm_H ;
- uint8_t Table_Det_19_dBm_L ;
- uint8_t Table_Det_20_dBm_H ;
- uint8_t Table_Det_20_dBm_L ;
- uint8_t Table_Det_21_dBm_H ;
- uint8_t Table_Det_21_dBm_L ;
- uint8_t Table_Det_22_dBm_H ;
- uint8_t Table_Det_22_dBm_L ;
- uint8_t Table_Det_23_dBm_H ;
- uint8_t Table_Det_23_dBm_L ;
- uint8_t Table_Det_24_dBm_H ;
- uint8_t Table_Det_24_dBm_L ;
- uint8_t Table_Det_25_dBm_H ;
- uint8_t Table_Det_25_dBm_L ;
- uint8_t Table_Det_26_dBm_H ;
- uint8_t Table_Det_26_dBm_L ;
- uint8_t Table_Det_27_dBm_H ;
- uint8_t Table_Det_27_dBm_L ;
- uint8_t Table_Det_28_dBm_H ;
- uint8_t Table_Det_28_dBm_L ;
- uint8_t Table_Det_29_dBm_H ;
- uint8_t Table_Det_29_dBm_L ;
- uint8_t Table_Det_30_dBm_H ;
- uint8_t Table_Det_30_dBm_L ;
- uint8_t Table_Det_31_dBm_H ;
- uint8_t Table_Det_31_dBm_L ;
- uint8_t Table_Det_32_dBm_H ;
- uint8_t Table_Det_32_dBm_L ;
- uint8_t Table_Det_33_dBm_H ;
- uint8_t Table_Det_33_dBm_L ;
- uint8_t Table_Det_34_dBm_H ;
- uint8_t Table_Det_34_dBm_L ;
- uint8_t Table_Det_35_dBm_H ;
- uint8_t Table_Det_35_dBm_L ;
- uint8_t Table_Det_36_dBm_H ;
- uint8_t Table_Det_36_dBm_L ;
- uint8_t Table_Det_37_dBm_H ;
- uint8_t Table_Det_37_dBm_L ;
- uint8_t Table_Det_38_dBm_H ;
- uint8_t Table_Det_38_dBm_L ;
- uint8_t Table_Det_39_dBm_H ;
- uint8_t Table_Det_39_dBm_L ;
- uint8_t Table_Det_40_dBm_H ;
- uint8_t Table_Det_40_dBm_L ;
- uint8_t Table_Det_41_dBm_H ;
- uint8_t Table_Det_41_dBm_L ;
- uint8_t Table_Det_42_dBm_H ;
- uint8_t Table_Det_42_dBm_L ;
- uint8_t Table_Det_43_dBm_H ;
- uint8_t Table_Det_43_dBm_L ;
- uint8_t Table_Det_44_dBm_H ;
- uint8_t Table_Det_44_dBm_L ;
- uint8_t Table_Det_45_dBm_H ;
- uint8_t Table_Det_45_dBm_L ;
- uint8_t Table_Det_46_dBm_H ;
- uint8_t Table_Det_46_dBm_L ;
- uint8_t Table_Det_47_dBm_H ;
- uint8_t Table_Det_47_dBm_L ;
- uint8_t Table_Det_48_dBm_H ;
- uint8_t Table_Det_48_dBm_L ;
- uint8_t Table_Det_49_dBm_H ;
- uint8_t Table_Det_49_dBm_L ;
- uint8_t Table_Det_50_dBm_H ;
- uint8_t Table_Det_50_dBm_L ;
- uint8_t Table_Det_51_dBm_H ;
- uint8_t Table_Det_51_dBm_L ;
- uint8_t Table_Det_52_dBm_H ;
- uint8_t Table_Det_52_dBm_L ;
- uint8_t Table_Det_53_dBm_H ;
- uint8_t Table_Det_53_dBm_L ;
- uint8_t Table_Det_54_dBm_H ;
- uint8_t Table_Det_54_dBm_L ;
- uint8_t Table_Det_55_dBm_H ;
- uint8_t Table_Det_55_dBm_L ;
- uint8_t Table_Det_56_dBm_H ;
- uint8_t Table_Det_56_dBm_L ;
- uint8_t Table_Det_57_dBm_H ;
- uint8_t Table_Det_57_dBm_L ;
- uint8_t Table_Det_58_dBm_H ;
- uint8_t Table_Det_58_dBm_L ;
- uint8_t Table_Det_59_dBm_H ;
- uint8_t Table_Det_59_dBm_L ;
- uint8_t Table_Det_60_dBm_H ;
- uint8_t Table_Det_60_dBm_L ;
- uint8_t Table_Det_XX1_dBm_H ;
- uint8_t Table_Det_XX1_dBm_L ;
- uint8_t Table_Det_XX2_dBm_H ;
- uint8_t Table_Det_XX2_dBm_L ;
- uint8_t Table_Det_XX3_dBm_H ;
- uint8_t Table_Det_XX3_dBm_L ;
- uint8_t Table_Det_XX4_dBm_H ;
- uint8_t Table_Det_XX4_dBm_L ;
- uint8_t Table_Det_XX5_dBm_H ;
- uint8_t Table_Det_XX5_dBm_L ;
- uint8_t Table_Det_XX6_dBm_H ;
- uint8_t Table_Det_XX6_dBm_L ;
- uint8_t Table_Det_XX7_dBm_H ;
- uint8_t Table_Det_XX7_dBm_L ;
- uint8_t Table_Det_XX8_dBm_H ;
- uint8_t Table_Det_XX8_dBm_L ;
- uint8_t Table_Det_XX9_dBm_H ;
- uint8_t Table_Det_XX9_dBm_L ;
- uint8_t Table_Det_XX10_dBm_H ;
- uint8_t Table_Det_XX10_dBm_L ;
- uint8_t Table_Det_XX11_dBm_H ;
- uint8_t Table_Det_XX11_dBm_L ;
- uint8_t Table_Det_XX12_dBm_H ;
- uint8_t Table_Det_XX12_dBm_L ;
- uint8_t Table_Det_XX13_dBm_H ;
- uint8_t Table_Det_XX13_dBm_L ;
- uint8_t Table_Det_XX14_dBm_H ;
- uint8_t Table_Det_XX14_dBm_L ;
- uint8_t Table_Det_XX15_dBm_H ;
- uint8_t Table_Det_XX15_dBm_L ;
- uint8_t Table_Det_XX16_dBm_H ;
- uint8_t Table_Det_XX16_dBm_L ;
- uint8_t Table_Det_XX17_dBm_H ;
- uint8_t Table_Det_XX17_dBm_L ;
- uint8_t Table_Det_XX18_dBm_H ;
- uint8_t Table_Det_XX18_dBm_L ;
- uint8_t Table_Det_XX19_dBm_H ;
- uint8_t Table_Det_XX19_dBm_L ;
- uint8_t Table_Det_XX20_dBm_H ;
- uint8_t Table_Det_XX20_dBm_L ;
- uint8_t Table_Det_XX21_dBm_H ;
- uint8_t Table_Det_XX21_dBm_L ;
- uint8_t Table_Det_XX22_dBm_H ;
- uint8_t Table_Det_XX22_dBm_L ;
- uint8_t Table_Det_XX23_dBm_H ;
- uint8_t Table_Det_XX23_dBm_L ;
- uint8_t Table_Det_XX24_dBm_H ;
- uint8_t Table_Det_XX24_dBm_L ;
- uint8_t Table_Det_XX25_dBm_H ;
- uint8_t Table_Det_XX25_dBm_L ;
- uint8_t Table_Det_XX26_dBm_H ;
- uint8_t Table_Det_XX26_dBm_L ;
- uint8_t Table_Det_XX27_dBm_H ;
- uint8_t Table_Det_XX27_dBm_L ;
- uint8_t Table_Det_XX28_dBm_H ;
- uint8_t Table_Det_XX28_dBm_L ;
- uint8_t Table_Det_XX29_dBm_H ;
- uint8_t Table_Det_XX29_dBm_L ;
- uint8_t Table_Det_XX30_dBm_H ;
- uint8_t Table_Det_XX30_dBm_L ;
- uint8_t Table_Det_XX31_dBm_H ;
- uint8_t Table_Det_XX31_dBm_L ;
- uint8_t Table_Det_XX32_dBm_H ;
- uint8_t Table_Det_XX32_dBm_L ;
- uint8_t Table_Det_XX33_dBm_H ;
- uint8_t Table_Det_XX33_dBm_L ;
- int8_t Table_Ref ;
- int8_t Table_Length ;
- }DET_TABLEUL_st;
- typedef struct{
- int8_t Table_1_Temp;
- int8_t Table_2_Temp;
- int8_t Table_3_Temp;
- int8_t Table_4_Temp;
- int8_t Table_5_Temp;
- int8_t Table_6_Temp;
- int8_t Table_7_Temp;
- int8_t Table_8_Temp;
- int8_t Table_9_Temp;
- int8_t Table_10_Temp;
- int8_t Table_11_Temp;
- int8_t Table_12_Temp;
- int8_t Table_13_Temp;
- int8_t Table_14_Temp;
- int8_t Table_15_Temp;
- int8_t Table_16_Temp;
- int8_t Table_17_Temp;
- int8_t Table_18_Temp;
- int8_t Table_19_Temp;
- int8_t Table_20_Temp;
- int8_t Table_21_Temp;
- int8_t Table_22_Temp;
- int8_t Table_23_Temp;
- int8_t Table_24_Temp;
- int8_t Table_25_Temp;
- int8_t Table_26_Temp;
- int8_t Table_27_Temp;
- int8_t Table_28_Temp;
- int8_t Table_29_Temp;
- int8_t Table_30_Temp;
- int8_t Table_Ref;
- int8_t Table_Length;
- }TEMP_TABLE_st;
- typedef enum{
- Bluecell_DET_UL1_ADC_INDEX_H = 0,
- Bluecell_DET_UL1_ADC_INDEX_L,
- Bluecell_DET_UL2_ADC_INDEX_H,
- Bluecell_DET_UL2_ADC_INDEX_L,
- Bluecell_DET_UL3_ADC_INDEX_H,
- Bluecell_DET_UL3_ADC_INDEX_L,
- Bluecell_RFU_TEMP_ADC_INDEX_H,
- Bluecell_RFU_TEMP_ADC_INDEX_L,
- Bluecell_ADC1_MaxLength,
- }Bluecell_ADC1_Index;
- typedef enum{
- Bluecell_DET_UL4_ADC_INDEX_H = Bluecell_ADC1_MaxLength,
- Bluecell_DET_UL4_ADC_INDEX_L,
- Bluecell_DET_DL1_ADC_INDEX_H,
- Bluecell_DET_DL1_ADC_INDEX_L,
- Bluecell_DET_DL2_ADC_INDEX_H,
- Bluecell_DET_DL2_ADC_INDEX_L,
- Bluecell_DET_DL3_ADC_INDEX_H,
- Bluecell_DET_DL3_ADC_INDEX_L,
- Bluecell_DET_DL4_ADC_INDEX_H,
- Bluecell_DET_DL4_ADC_INDEX_L,
- Bluecell_ADC3_MaxLength,
- }Bluecell_ADC3_Index;
- typedef enum{
- DET_Alarm_DL1_Index = 0,
- DET_Alarm_DL2_Index,
- DET_Alarm_DL3_Index,
- DET_Alarm_DL4_Index,
- DET_Alarm_DL_Index_MAX,
- }DET_Alarm_DL_I;
- typedef enum{
- DET_Alarm_UL1_Index = 0,
- DET_Alarm_UL2_Index,
- DET_Alarm_UL3_Index,
- DET_Alarm_UL4_Index,
- DET_Alarm_UL_Index_MAX,
- }DET_Alarm_UL_I;
- typedef enum{
- DET_Alarm_DL1_Shutdown_Index = 0,
- DET_Alarm_DL2_Shutdown_Index,
- DET_Alarm_DL3_Shutdown_Index,
- DET_Alarm_DL4_Shutdown_Index,
- DET_Alarm_DL_Shutdown_Index_MAX,
- }MBIC_Shutdown_DL_Index_t;
- typedef enum{
- DET_Alarm_UL1_Shutdown_Index = 0,
- DET_Alarm_UL2_Shutdown_Index,
- DET_Alarm_UL3_Shutdown_Index,
- DET_Alarm_UL4_Shutdown_Index,
- DET_Alarm_UL_Shutdown_Index_MAX,
- }MBIC_Shutdown_UL_Index_t;
- #define ADC1_EA Bluecell_ADC1_MaxLength /2
- #define ADC3_EA Bluecell_ADC3_MaxLength /2
- extern ATT_TABLE_st Att_DL1;
- extern ATT_TABLE_st Att_DL2;
- extern ATT_TABLE_st Att_DL3;
- extern ATT_TABLE_st Att_DL4;
- extern ATT_TABLE_st Att_UL1;
- extern ATT_TABLE_st Att_UL2;
- extern ATT_TABLE_st Att_UL3;
- extern ATT_TABLE_st Att_UL4;
- extern DET_TABLEDL_st Det_DL1;
- extern DET_TABLEDL_st Det_DL2;
- extern DET_TABLEDL_st Det_DL3;
- extern DET_TABLEDL_st Det_DL4;
- extern DET_TABLEUL_st Det_UL1;
- extern DET_TABLEUL_st Det_UL2;
- extern DET_TABLEUL_st Det_UL3;
- extern DET_TABLEUL_st Det_UL4;
- extern TEMP_TABLE_st Temp_DL1;
- extern TEMP_TABLE_st Temp_DL2;
- extern TEMP_TABLE_st Temp_DL3;
- extern TEMP_TABLE_st Temp_DL4;
- extern TEMP_TABLE_st Temp_UL1;
- extern TEMP_TABLE_st Temp_UL2;
- extern TEMP_TABLE_st Temp_UL3;
- extern TEMP_TABLE_st Temp_UL4;
- extern BLUESTATUS_st bluecell_Currdatastatus;
- extern volatile uint32_t ALCTimerCnt;
- extern volatile uint32_t AGCTimerCnt;
- extern IWDG_HandleTypeDef hiwdg;
- extern void Bluecell_DataInit();
- extern void ALC_Function();
- extern void AGC_Function();
- #endif /* BLUECELL_OPERATE_H_ */
|