Ejemplo n.º 1
0
void CommandDump(CmdReq_t *reqp, CmdParameters_t * paramp)
{
#ifdef COMMAND_DUMP	
	CmdParameters_t *cmdparamp = paramp;
	
	printk("subcmd: %4x, flag: %d\n", reqp->subcmd, reqp->flag);
	if(cmdparamp) {
		printk("param1: %2x, param2: %2x, param3: %2x, param4: %2x\n", PARAM1(cmdparamp), \
				PARAM2(cmdparamp), PARAM3(cmdparamp), PARAM4(cmdparamp));	
	}
#endif
}
Ejemplo n.º 2
0
/*
* @brief Send the NOP command
*
* @param ch_ctx : The channel context to consider
*
* @return 0 when OK, error value otherwise
*/
int dlp_ctrl_send_nop(struct dlp_channel *ch_ctx)
{
	int ret;
	unsigned char param1, param2, param3;

	param1 = PARAM1(DLP_NOP_CMD_CHECKSUM);
	param2 = PARAM2(DLP_NOP_CMD_CHECKSUM);
	param3 = PARAM3(DLP_NOP_CMD_CHECKSUM);

	/* Send the NOP command */
	ret = dlp_ctrl_cmd_send(ch_ctx,
			DLP_CMD_NOP, DLP_CMD_NONE,
			DLP_CH_STATE_NONE, DLP_CH_STATE_NONE,
			param1, param2, param3);

	return ret;
}