Struct iocshArg

Struct Documentation

struct iocshArg

This struct is used to indicate data types of function parameters for iocshRegister(). The name element is used by the help command to print a synopsis for the command. The type element describes the data type of the argument and takes a value from iocshArgType.

static const iocshArg AsynGenericConfigArg0 = {"Port Name", iocshArgString};
static const iocshArg AsynGenericConfigArg1 = {"Number Devices", iocshArgInt};
static const iocshArg* const AsynGenericConfigArgs[]
 = { &AsynAXEConfigArg0, &AsynAXEConfigArg1 };

Public Members

const char *name
iocshArgType type