Example #1
0
static void createId(int id) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBin(id, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=((length-i)+1)*4;
			createHigh(106-x, 106-(x-3));
		}
	}
}
Example #2
0
static void createUnitCode(int unitcode) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(unitcode, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createHigh(20+x, 20+x+3);
		}
	}
}
Example #3
0
static void createSystemCode(int systemcode) {
	int binary[255];
	int length = 0;
	int i=0, x=0;

	length = decToBinRev(systemcode, binary);
	for(i=0;i<=length;i++) {
		if(binary[i]==1) {
			x=i*4;
			createHigh(x, x+3);
		}
	}
}
Example #4
0
static void clearCode(void) {
	createHigh(0,35);
	createLow(36,47);
}
Example #5
0
static void createState(int state) {
	if(state == 0) {
		createHigh(44,47);
	}
}
Example #6
0
static void createState(int state) {
	if(state == 1) {
		createHigh(110, 113);
	}
}
Example #7
0
static void createAll(int all) {
	if(all == 1) {
		createHigh(106, 109);
	}
}
Example #8
0
static void clearCode(void) {
	createHigh(0,47);
}
Example #9
0
static void createProgramCode(int programcode) {
	createHigh(16+(programcode-1)*4, 16+(programcode-1)*4+3);
}
Example #10
0
static void createSystemCode(int systemcode) {
	createHigh((systemcode-1)*4, (systemcode-1)*4+3);
}