Atmel Software Framework

actuator.h File Reference
#include "compiler.h"
#include "FreeRTOS.h"
#include "cptime.h"

Functions

eExecStatus e_actuator_cmd_get_value (eModId xModId, signed short FsNavId, int ac, signed portCHAR *av[], signed portCHAR **ppcStringReply)
 
eExecStatus e_actuator_cmd_set_value (eModId xModId, signed short FsNavId, int ac, signed portCHAR *av[], signed portCHAR **ppcStringReply)
 
eExecStatus e_actuator_help (eModId xModId, signed short FsNavId, int ac, signed portCHAR *av[], signed portCHAR **ppcStringReply)
 
eExecStatus e_actuator_ScheduleCmdSet (eSchedCmdId CmdId, int ac, signed portCHAR *av[], signed portCHAR **ppcStringReply)
 Schedule an actuator set for later. More...
 
void vExecScheduledSet (int CmdId, void *pxCmdParams)
 Execute a scheduled command. More...
 

Variables

const signed portCHAR *const ACTUATOR_ERRMSG_SETVAL_SYNTAXERROR
 

eExecStatus e_actuator_cmd_set_value ( eModId  xModId,
signed short  FsNavId,
int  ac,
signed portCHAR *  av[],
signed portCHAR **  ppcStringReply 
)
eExecStatus e_actuator_help ( eModId  xModId,
signed short  FsNavId,
int  ac,
signed portCHAR *  av[],
signed portCHAR **  ppcStringReply 
)
eExecStatus e_actuator_ScheduleCmdSet ( eSchedCmdId  CmdId,
int  ac,
signed portCHAR *  av[],
signed portCHAR **  ppcStringReply 
)

Schedule an actuator set for later.

Parameters
CmdIdInput. The set actuator cmd identifier.
acInput. The argument counter.
avInput. The argument vector.
ppcStringReplyInput/Output. The response string. If Input is NULL, no response string will be output. If the action is successful, no response string is output. If the action failed, a response string is output.
Returns
the status of the command execution.

References st_scheduled_param::ac, ACTUATOR_ERRMSG_SETVAL_SYNTAXERROR, st_scheduled_param::av, e_cptime_RecordScheduledCmd(), i, j, NULL, pvPortMalloc(), SHELL_ERRMSG_MEMALLOC, SHELL_EXECSTATUS_KO, vExecScheduledSet(), and vPortFree().

Referenced by e_lcd_set_value(), e_ledb1_set_value(), e_ledb2_set_value(), e_ledm1_set_value(), and e_ledm2_set_value().

void vExecScheduledSet ( int  CmdId,
void *  pxCmdParams 
)

const signed portCHAR* const ACTUATOR_ERRMSG_SETVAL_SYNTAXERROR