view src/ui/bmi/Icons/IcnDefs.c @ 287:3dee79757ae4

UI fw: load handheld audio mode on boot We have now reached the point where use of audio mode config files should be considered mandatory. In ACI usage we can tell users that they need to perform an AT@AUL of some appropriate audio mode, but in UI-enabled fw we really need to have the firmware load audio modes on its own, so that correct audio config gets established when the handset or development board runs on its own, without a connected host computer. Once have FC Venus with both main and headset audio channels and headset plug insertion detection, our fw will need to automatically load the handheld mode or the headset mode depending on the plug insertion state. For now we load only the handheld mode, which has been tuned for FC-HDS4 on FC Luna.
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 13 Nov 2021 03:20:57 +0000
parents 67bfe9f274f6
children
line wrap: on
line source

#include "IcnDefs.h"

#if 0

char NO_PALETTE[] = {0x00,0x00,0x00};
char NO_BMP_DATA[] = {0x00,0x00,0x00};

//Function to get icon information
int icn_getIconData( int iconId, int * op_sx, int * op_sy, char* *op_bmpData, int *op_format)
{
	char**palette;
	*op_sx = 0;	
	*op_sy = 0;
	*op_bmpData = NO_BMP_DATA;
	*palette = NO_PALETTE;
#ifdef COLOURDISPLAY
	switch (iconId)
	{
	case ICON_IDLE_Background:

	case ICON_IDLE_Battery4:		icnBattery_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_Battery14:		icnBattery_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_Battery24:		icnBattery_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_Battery49:		icnBattery_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_Battery100:		icnBattery_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_forwarding:
	case ICON_IDLE_keylock:
	case ICON_IDLE_message:
	case ICON_IDLE_signalStr49: 	icnSignalStr_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_signalStr99: 	icnSignalStr_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_signalStr149: 	icnSignalStr_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_signalStr199:	icnSignalStr_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_signalStr255:	icnSignalStr_dataformat(iconId,op_bmpData, op_sx, op_sy, op_format, palette);	break;
	case ICON_IDLE_homeZone:
	case ICON_IDLE_gprs:			icnGPRS_dataformat(op_bmpData, op_sx, op_sy, op_format, palette);	break;

	case ICON_IDLE_voicemail:


//'main' icons
	case ICON_MAIN_Application:
	case ICON_MAIN_Divert:
	case ICON_MAIN_Messages:
	case ICON_MAIN_Phonebook:
	case ICON_MAIN_RecentCalls:
	case ICON_MAIN_Security:
	case ICON_MAIN_Settings:
	case ICON_MAIN_SIM_Toolkit:
	case ICON_MAIN_WAP:

//popup
	case ICON_POPUP_CLOUDS:

//network
	case ICON_Bouygues:
	case ICON_Vodafone:
	case ICON_SFR:
	case ICON_VodafoneD2:
	case ICON_Chinamobile:
	case ICON_Fareast:
	case ICON_orange:
	case ICON_sonofon:
	case ICON_Tmobile:

	case ICON_BgdSquares: 		icnBgdSquares_dataformat(op_bmpData, op_sx, op_sy, op_format, palette);	break;
	default:
		return(-1);
		break;
		
	}
#endif
	return (0);	
}
#endif