123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- #include <stdio.h>
- #include "main.h"
- #include "Bluecell_operate.h"
- extern volatile uint32_t LedTimerCnt;
- uint8_t Alarm_Status[MAX_ALARM_Len] = {0,};
- uint8_t ResultData[1024] = {0,};
- void Boot_LED_Toggle(void){
- if(LedTimerCnt > 500){
- HAL_GPIO_TogglePin(GPIOG,GPIO_PIN_14);
- LedTimerCnt = 0;
- // printf("LED OF OFF\r\n");
- }
- }
- uint8_t* MBIC_HeaderDataSetting(uint8_t* data){
- ResultData[MBIC_PREAMBLE_0] = MBIC_PREAMBLE0;
- ResultData[MBIC_PREAMBLE_1] = MBIC_PREAMBLE1;
- ResultData[MBIC_PREAMBLE_2] = MBIC_PREAMBLE2;
- ResultData[MBIC_PREAMBLE_3] = MBIC_PREAMBLE3;
- ResultData[MBIC_SUBUID_0] = MBIC_SUBUID0;
- ResultData[MBIC_SUBUID_1] = MBIC_SUBUID1;
- ResultData[MBIC_RCODE_0] = data[MBIC_RCODE_0];
- ResultData[MBIC_TRID_0] = data[MBIC_TRID_0];
- ResultData[MBIC_TRID_1] = data[MBIC_TRID_1];
- ResultData[MBIC_SEQSUM_0] = data[MBIC_SEQSUM_0];
- ResultData[MBIC_TTL_0] = data[MBIC_TTL_0];
- ResultData[MBIC_TIME_0] = data[MBIC_TIME_0];
- ResultData[MBIC_TIME_1] = data[MBIC_TIME_1];
- ResultData[MBIC_TIME_2] = data[MBIC_TIME_2];
- ResultData[MBIC_TIME_3] = data[MBIC_TIME_3];
- ResultData[MBIC_TIME_4] = data[MBIC_TIME_4];
- ResultData[MBIC_TIME_5] = data[MBIC_TIME_5];
- return ResultData;
- }
- typedef enum{
- BLUECELL_DL_PATH1 = 0x01,
- BLUECELL_UL_PATH1,
- BLUECELL_DL_PATH2,
- BLUECELL_UL_PATH2,
- BLUECELL_DL_PATH3,
- BLUECELL_UL_PATH3,
- BLUECELL_DL_PATH4,
- BLUECELL_UL_PATH4,
- };
- bool Bluecell_Operate(uint8_t* data){
- uint8_t datatype = 0;
- switch(datatype){
- case BLUECELL_DL_PATH1:
- break;
- case BLUECELL_UL_PATH1:
-
- break;
- case BLUECELL_DL_PATH2:
-
- break;
- case BLUECELL_UL_PATH2:
-
- break;
- case BLUECELL_DL_PATH3:
-
- break;
- case BLUECELL_UL_PATH3:
-
- break;
- case BLUECELL_DL_PATH4:
-
- break;
- case BLUECELL_UL_PATH4:
-
- break;
- }
- return true;
- }
- bool MBIC_Operate(uint8_t* data){
- uint16_t datatype = 0;
- switch(datatype){
- case Alarm_Bit_List:
- // 알림 비트
- Uart1_Data_Send(&Alarm_Status[0],MAX_ALARM_Len);
- break;
- case Alarm_Mask:
- break;
- case Alarm_Test_Mode:
- break;
- case Alarm_Test_Dummy:
- break;
- case CPU_Version:
- break;
- case ModuleINFORMATION_null1:
- break;
- case CPU_Current_Bank:
- break;
- case CPU_Bank_Select_Reboot_by:
- break;
- case CPU_Bank1_Image_Version:
- break;
- case CPU_Bank1_Image_BuildTime:
- break;
- case CPU_Bank1_Image_Name:
- break;
- case CPU_Bank2_Image_Version:
- break;
- case CPU_Bank2_Image_BuildTime:
- break;
- case CPU_Bank2_Image_Name:
- break;
- case SW_Reset:
- break;
- case Factory_Set_Initialization:
- break;
- case Temperature:
- break;
- case Temperature_Offset:
- break;
- case Temp_High_Threshold:
- break;
- case Temp_High_Threshold_Default:
- break;
- case Temp_High_Alarm:
- break;
- case LED_TEST:
- break;
- case Node:
- break;
- case Type:
- break;
- case PCB_Version:
- break;
- case Serial_Number:
- break;
- case Manufacture:
- break;
- case Manufacture_Date:
- break;
- case ENVIRONMENT_INVENTORY_null1:
- printf("Function : %s .... Line : %d\r\n",__func__,__LINE__);
- break;
- case Freq_ID:
- break;
- case Carrier_ID:
- break;
- case Carrier_ON_OFF:
- break;
- }
- return true;
- }
|