CommandResultPtr LUX::stop_measure() { CommandResultPtr cmd( new CommandResult(StopMeasure) ); _make_cmd_stop_measure( cmd->cmd_buf() ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::set_ntp_timestamp_sync( uint32_t seconds, uint32_t fractional_seconds ) { CommandResultPtr cmd( new CommandResult(SetNTPTimestampSync) ); _make_cmd_set_ntp_timestamp_sync( cmd->cmd_buf(), seconds, fractional_seconds ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::get_parameter( uint16_t index ) { CommandResultPtr cmd( new CommandResult(GetParameter) ); _make_cmd_get_parameter( cmd->cmd_buf(), index ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::reset_default_parameters() { CommandResultPtr cmd( new CommandResult(ResetDefaultParameters) ); _make_cmd_reset_default_parameters( cmd->cmd_buf() ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::set_parameter( uint16_t index, uint32_t value ) { CommandResultPtr cmd( new CommandResult(SetParameter) ); _make_cmd_set_parameter( cmd->cmd_buf(), index, value ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::save_config() { CommandResultPtr cmd( new CommandResult(SaveConfig) ); _make_cmd_save_config( cmd->cmd_buf() ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::get_status() { CommandResultPtr cmd( new CommandResult(GetStatus) ); _make_cmd_get_status( cmd->cmd_buf() ); _enqueue_cmd( cmd ); return cmd; }
CommandResultPtr LUX::reset() { CommandResultPtr cmd( new CommandResult(Reset) ); _make_cmd_reset( cmd->cmd_buf() ); _enqueue_cmd( cmd ); return cmd; }
u32 r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj) { int res; if (pcmdpriv->padapter->eeprompriv.bautoload_fail_flag == true) return _FAIL; res = _enqueue_cmd(&pcmdpriv->cmd_queue, obj); up(&pcmdpriv->cmd_queue_sema); return res; }
u32 enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj) { int res; _func_enter_; if(pcmdpriv->padapter->eeprompriv.bautoload_fail_flag==_TRUE) { RT_TRACE(_module_rtl871x_cmd_c_,_drv_err_,("pcmdpriv->padapter->eeprompriv.bautoload_fail_flag=%x", pcmdpriv->padapter->eeprompriv.bautoload_fail_flag)); return _FAIL; } res = _enqueue_cmd(&(pcmdpriv->cmd_queue), obj); _up_sema(&pcmdpriv->cmd_queue_sema); _func_exit_; return res; }