class::hal::SwitchboardConnection

class hal::SwitchboardConnection
  : public api::InfoObject

Summary

[SwitchboardConnection](#classhal_1_1_switchboard_connection_1a1e1850dc7b09cc91caf3a337ff555159)()

[SwitchboardConnection](#classhal_1_1_switchboard_connection_1a5b5e7d381b33d7c70ec1bb7aec7249ad)(  

const SwitchboardTerminal & input,
const SwitchboardTerminal & output,
s32 nbyte
)

int error_number() const

u16 id() const

SwitchboardTerminal input() const

bool is_canceled() const

bool is_connected() const

bool is_destroyed() const

bool is_error() const

bool is_valid() const

s32 nbyte() const

u32 o_flags() const

SwitchboardTerminal output() const

void print() const

void set_input(

const SwitchboardTerminal & value
)

void set_output(

const SwitchboardTerminal & value
)

static u16 invalid_id()

Members

SwitchboardConnection()

Constructs a new empty connection.


SwitchboardConnection(

const SwitchboardTerminal & input,
const SwitchboardTerminal & output,
s32 nbyte
)

Constructs a connection with the specified terminals.


int error_number() const

Returns the error number associated with the is_stopped_on_error() condition.


u16 id() const

Returns the connection ID value.

If this value is equal to invalid_id(), the connection is not valid.


SwitchboardTerminal input() const

Returns a copy of the input terminal.


bool is_canceled() const

Returns true if the connection stopped because an operation was canceled.


bool is_connected() const

Returns true if the connection is currently running.


bool is_destroyed() const

Returns true if the connection has been destroyed.


bool is_error() const

Returns true if the connection has stopped on an error.


bool is_valid() const

Returns true if the object holds valid information.


s32 nbyte() const

Returns the number of bytes transferred on the last transaction.

If this value is negative, then an error has occurred.


u32 o_flags() const

Returns the status flags of the connection.


SwitchboardTerminal output() const

Returns a copy of the output terminal.


void print() const

Prints details about the connection on the standard output.


void set_input(

const SwitchboardTerminal & value
)

Sets the connection’s input terminal.


void set_output(

const SwitchboardTerminal & value
)

Sets the connections’s output terminal.


static u16 invalid_id()

Returns the value assigned to invalid index values.


X

Thanks for Coming!

Subscribe to news and updates