|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.motorola.oem.osc.DisplayConfig
public class DisplayConfig
Configure and control the main display FPGA settings.
The main operations:
1) Load FPGA configuration image file obtained from FPGA maufacturer.
2) Send FPGA control command.
Method Summary | |
---|---|
static void |
loadFpgaConfigFile(java.lang.String userResourceName)
Configure FPGA for user main display. |
static void |
loadFpgaConfigFile(java.lang.String userResourceName,
boolean force)
Configure FPGA for user main display. |
static void |
sendFpgaCommand(byte command)
Send control command to the FPGA or display. |
static void |
setDeviceOutputResolution(int width,
int height)
Set device's output resolution. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void sendFpgaCommand(byte command) throws java.lang.IllegalArgumentException
Pixel duplication. Linear interpolation. Cubic interpolation. Boosted cubic interpolation.2) Enable/Disable rotation (180 degrees).
import com.motorola.oem.osc.DisplayConfig;
...
// Set rescaler algorithm to 'Boosted cubic interpolation'
DisplayConfig.sendFpgaCommand((byte)0x44);
command
- represented as one byte (8 bits)
java.lang.IllegalArgumentException
public static void loadFpgaConfigFile(java.lang.String userResourceName, boolean force) throws java.lang.IllegalArgumentException, java.lang.Exception
force
parameter is set to true.
// load config file located within JAR file
loadFpgaConfigFile("/Xilinx320x240RV001.bin", true);
userResourceName
- Config file URL points to MIDlet's JAR file.force
- Indicates whether to force file load
java.lang.IllegalArgumentException
java.lang.Exception
public static void loadFpgaConfigFile(java.lang.String userResourceName) throws java.lang.IllegalArgumentException, java.lang.Exception
loadFpgaConfigFile(String, boolean)
.
// load config file located under 'res' folder within JAR file
loadFpgaConfigFile("/res/Xilinx320x240RV001.bin");
userResourceName
- Config file URL points to MIDlet's JAR file
java.lang.IllegalArgumentException
java.lang.Exception
public static void setDeviceOutputResolution(int width, int height) throws java.lang.IllegalArgumentException
import com.motorola.oem.osc.DisplayConfig;
...
// Set resolution to QVGA
DisplayConfig.setDeviceOutputResolution(320, 240);
width
- Display's width in pixelsheight
- Display's height in pixels
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |