예제 #1
0
bool LGE_FacWriteImei(unsigned int imeiNum, unsigned char *imei)
{
    if (imeiNum == 1)
    {
        //                                                                                  
        return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI_IDX, LGE_FAC_IMEI_SIZE);
    }
    else if(imeiNum == 2)
    {
        //                                                                                      
        return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI2_IDX, LGE_FAC_IMEI_SIZE);
    }
    else if(imeiNum == 3)
    {
        //                                                                                      
        return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI3_IDX, LGE_FAC_IMEI_SIZE);
    }
    else if(imeiNum == 4)
    {
        //                                                                                      
        return _LGE_GENERIC_WRITE_FUN(imei, LGE_FAC_IMEI4_IDX, LGE_FAC_IMEI_SIZE);
    }
}
예제 #2
0
bool LGE_FacWriteOneBinaryHWInfo(unsigned char *data, bool needFlashProgram)
{
    bool result = 0;

    result = _LGE_GENERIC_WRITE_FUN(data, LGE_ONE_BINARY_HWINFO_IDX, LGE_ONE_BINARY_HWINFO_SIZE);

    if( result == 1 )
    {
        printk("jjm_debug : LGE_FacWriteOneBinaryHWInfo Success! : OneBinaryHWInfo=%s\n", data);
    }
	else
	{
		printk("jjm_debug : LGE_FacWriteOneBinaryHWInfo Fail!");
	}

    return result;
}
bool LGE_FacWriteBtAddr(unsigned char *btAddr, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_IDX, LGE_FAC_BT_SIZE);
}
예제 #4
0
bool LGE_FacWriteFactoryResetStatusFlag(unsigned char factoryResetFlag)
{
    //                                                                                                          
    return _LGE_GENERIC_WRITE_FUN(&factoryResetFlag, LGE_FAC_FACTORY_RESET_IDX, LGE_FAC_FACTORY_RESET_SIZE);
}
예제 #5
0
bool LGE_FacWritePid(unsigned char *pid)
{
    //                                                                        
    return _LGE_GENERIC_WRITE_FUN(pid, LGE_FAC_PID_IDX, LGE_FAC_PID_SIZE);
}
예제 #6
0
bool LGE_FacWriteFusgFlag(unsigned char fusgFlag)
{
    //                                                                                          
    return _LGE_GENERIC_WRITE_FUN(&fusgFlag, LGE_FAC_FUSG_FLAG_IDX, LGE_FAC_FUSG_FLAG_SIZE);
}
예제 #7
0
bool LGE_FacWriteUnlockFailCount(unsigned char simLockType, unsigned char failCount)
{
    //                                                                                                           
    return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCKCODE_FAIL_COUNT_IDX, LGE_FAC_UNLOCKCODE_FAIL_COUNT_SIZE);
}
예제 #8
0
bool LGE_FacWriteNetworkCodeListNum(unsigned short networkCodeListNum)
{
    //                                                                                                                            
    return _LGE_GENERIC_WRITE_FUN(&networkCodeListNum, LGE_FAC_NETWORK_CODE_LIST_IDX, LGE_FAC_NETWORK_CODE_LIST_SIZE);
}
예제 #9
0
bool LGE_FacWriteUnlockCodeVerifyFailCount(unsigned char failCount, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCK_CODE_VERIFY_FAIL_COUNT_OFFSET, LGE_FAC_UNLOCK_CODE_VERIFY_FAIL_COUNT_LEN);
}
예제 #10
0
bool LGE_FacWriteNetworkCodeListNum(unsigned short *networkCodeListNum, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN((unsigned char *)&networkCodeListNum, LGE_FAC_NETWORK_CODE_LIST_NUM_OFFSET, LGE_FAC_NETWORK_CODE_LIST_NUM_LEN);
}
예제 #11
0
bool LGE_FacWriteSimLockType(unsigned char simLockType, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(&simLockType, LGE_FAC_SIM_LOCK_TYPE_OFFSET, LGE_FAC_SIM_LOCK_TYPE_LEN);
}
예제 #12
0
bool LGE_FacWriteImei(unsigned char imei_type, unsigned char *imei, bool needFlashProgram)
{
    if(imei_mapping_table[imei_type]==LGE_FAC_IMEI_ENDMARK) return false;

    return _LGE_GENERIC_WRITE_FUN(imei, imei_mapping_table[imei_type], LGE_FAC_IMEI_LEN);
}
예제 #13
0
bool LGE_FacWriteBtAddr(unsigned char *btAddr, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_ADDR_OFFSET, LGE_FAC_BT_ADDR_LEN);
}
예제 #14
0
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_MAC_ADDR_OFFSET, LGE_FAC_WIFI_MAC_ADDR_LEN);
}
예제 #15
0
bool LGE_FacWriteAccelerometerCalibration(unsigned char *accel_cal_val)
{
    return _LGE_GENERIC_WRITE_FUN(accel_cal_val, LGE_FAC_ACCELEROMETER_CALIBRATION_IDX, LGE_FAC_ACCELEROMETER_CALIBRATION_SIZE);
}
예제 #16
0
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr)
{
    //                                                                                                    
    return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_IDX, LGE_FAC_WIFI_SIZE);
}
예제 #17
0
bool LGE_FacWriteBtAddr(unsigned char *btAddr)
{
    //                                                                                   
    return _LGE_GENERIC_WRITE_FUN(btAddr, LGE_FAC_BT_IDX, LGE_FAC_BT_SIZE);
}
예제 #18
0
bool LGE_FacWriteUnlockFailCount(unsigned char simLockType, unsigned char failCount, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCK_FAIL_COUNT_OFFSET, LGE_FAC_UNLOCK_FAIL_COUNT_LEN);
}
예제 #19
0
bool LGE_FacWriteSimLockType(unsigned char simLockType)
{
    //                                                                                                     
    return _LGE_GENERIC_WRITE_FUN(&simLockType, LGE_FAC_SIMLOCK_TYPE_IDX, LGE_FAC_SIMLOCK_TYPE_SIZE);
}
예제 #20
0
bool LGE_FacWriteUnlockCode(FactoryUnlockCode * unlockCode, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN((unsigned char *)unlockCode, LGE_FAC_UNLOCK_CODE_OFFSET, LGE_FAC_UNLOCK_CODE_LEN);
}
예제 #21
0
bool LGE_FacWriteUnlockCodeVerifyFailCount(unsigned char failCount)
{
    //                                                                                                                                   
    return _LGE_GENERIC_WRITE_FUN(&failCount, LGE_FAC_UNLOCKCODE_VERIFY_FAIL_IDX, LGE_FAC_UNLOCKCODE_VERIFY_FAIL_SIZE);
}
예제 #22
0
bool LGE_FacWriteNetworkCode(FactoryNetworkCode * networkCode, unsigned short networkCodeListNum, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN((unsigned char *)networkCode, LGE_FAC_NETWORK_CODE_OFFSET, LGE_FAC_NETWORK_CODE_LEN);
}
예제 #23
0
bool LGE_FacWriteNetworkCode(FactoryNetworkCode * networkCode, unsigned short networkCodeListNum)
{
    //                                                                                                  
    return _LGE_GENERIC_WRITE_FUN(networkCode, LGE_FAC_NETWORK_CODE_IDX, LGE_FAC_NETWORK_CODE_SIZE);
}
예제 #24
0
bool LGE_FacWriteFusgFlag(unsigned char fusgFlag, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(&fusgFlag, LGE_FAC_FUSG_FLAG_OFFSET, LGE_FAC_FUSG_FLAG_LEN);
}
예제 #25
0
bool LGE_FacWriteDataVersion(unsigned char *dataVersion)
{
    //                                                                                                  
    return _LGE_GENERIC_WRITE_FUN(dataVersion, LGE_FAC_DATA_VER_IDX, LGE_FAC_DATA_VER_SIZE);
}
예제 #26
0
bool LGE_FacWriteDataVersion(unsigned char *dataVersion, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(dataVersion, LGE_FAC_DATA_VERSION_OFFSET, LGE_FAC_DATA_VERSION_LEN);
}
예제 #27
0
bool LGE_FacWriteQEMFlag(unsigned char qemFlag)
{
    //                                                                             
    return _LGE_GENERIC_WRITE_FUN(&qemFlag, LGE_FAC_QEM_IDX, LGE_FAC_QEM_SIZE);
}
예제 #28
0
bool LGE_FacWritePid(unsigned char *pid, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(pid, LGE_FAC_PID_OFFSET, LGE_FAC_PID_LEN);
}
예제 #29
0
bool LGE_FacWriteLCDCalibration(unsigned char *lcd_kcal)
{
    return _LGE_GENERIC_WRITE_FUN(lcd_kcal, LGE_FAC_LCD_CALIBRATION_IDX, LGE_FAC_LCD_CALIBRATION_SIZE);
}
bool LGE_FacWriteWifiMacAddr(unsigned char *wifiMacAddr, bool needFlashProgram)
{
    return _LGE_GENERIC_WRITE_FUN(wifiMacAddr, LGE_FAC_WIFI_IDX, LGE_FAC_WIFI_SIZE);
}