DoubleCommand_create

Function DoubleCommand_create 

Source
pub unsafe extern "C" fn DoubleCommand_create(
    self_: DoubleCommand,
    ioa: c_int,
    command: c_int,
    selectCommand: bool,
    qu: c_int,
) -> DoubleCommand
Expand description

Create a double command information object

§Arguments

  • self (direction in) - existing instance to reuse or NULL to create a new instance
  • ioa (direction in) - information object address
  • command (direction in) - the double command state (0 = not permitted, 1 = off, 2 = on, 3 = not permitted)
  • selectCommand (direction in) - (S/E bit) if true send “select”, otherwise “execute”
  • qu (direction in) - qualifier of command QU parameter(0 = no additional definition, 1 = short pulse, 2 = long pulse, 3 = persistent output)

§Returns

the initialized instance