unsigned char WriteCommand(unsigned char portWidth, unsigned int commandAddress, unsigned int command) { if (busWidth == 8 ){ WRITE_COMMAND8(commandAddress, command); } else if( busWidth == 16 ){ WRITE_COMMAND16(commandAddress, command); } else if(busWidth == 32 ){ WRITE_COMMAND32(commandAddress, command); } return 0; }