Download PGRemote User`s Manual
Transcript
The Moving Pixel Company PGRemote User’s Manual – Doc. Rev. 1.34 -- 5/6/13 END_EDIT_CONFIG. Configuration commands only take effect after END_EDIT_CONFIG has been sent, allowing configuration to be performed only once after many commands have been sent. Multiple start/end sequences are allowed and there is no restriction on which subset of configuration commands can be present in each sequence. For example, the following sequence would be used to set the DTMode, LP and HS frequencies, and lane count: // start setting configuration parameters rc = client.PGRemoteCmd(RPCCmds.START_EDIT_CONFIG, ref errMsg, ref statusMsg); rc = client.PGRemoteCmd(RPCCmds.SET_DT_MODE, RPCDefs.DT_HS, ref errMsg, ref statusMsg); rc = client.PGRemoteCmd(RPCCmds.SET_LP_FREQ, (float)7.6e+6, ref errMsg, ref statusMsg); rc = client.PGRemoteCmd(RPCCmds.SET_HS_FREQ, (float)300e+6, ref errMsg, ref statusMsg); rc = client.PGRemoteCmd(RPCCmds.SET_LANE_CNT, 4, ref errMsg, ref statusMsg); // done setting configuration parameters... send to PG and probe rc = client.PGRemoteCmd(RPCCmds.END_EDIT_CONFIG, ref errMsg, ref statusMsg); 4.2.5.4 Defining and Sending Macros Similarly, macros are defined by bracketing their component commands with START_MACRO and SEND_MACRO. The START_MACRO call puts PGRemote in macro-mode and initializes to build a new macro. All MIPI commands that are subsequently sent are added to the current macro (rather than forwarded to the PG for playback). Then, when the SEND_MACRO call is made, macro-mode is exited, and the macro is sent to the PG for playback. Thus, this mode is useful for packing multiple commands into a single sequence for playback without large time gaps in between them. Unlike defining and editing macros using the GUI, macros defined via RPC have no name and are not stored or saved by PGRemote. Each time a macro is sent, it must be first defined. The last macro defined, however, may be repeatedly sent using SEND_MACRO. Only MIPI commands may be components of a macro (i.e. commands sent via MIPICmd or ImpairedMIPICmd and not PGRemoteCmd). In addition, as with defining macros using the GUI, LP and HS packet types may be mixed. Note that, while in the PGRemote GUI sending packed pixel stream commands result in video mode being invoked (and full frames built as a result), when these commands are sent in a macro, they result in a single packed pixel stream packet being sent. Thus, conceptually, RPC macros can be used to build and send full video frames. The following sequence defines and plays a simple macro: - Page 63 -