Robotran C Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Attributes | List of all members
UserIoInfo Struct Reference

Contains information about UserIO. More...

#include <mbs_user_interface.h>

Public Attributes

int n_in
 

Number of user input port.

More...
 
int n_out
 

Number of user output port.

More...
 
int * size_in
 

The size of each input port.

More...
 
int * size_out
 

The size of each output port.

More...
 
double ** ptr_in
 

List of pointers to each user input values.

More...
 
double ** ptr_out
 

List of pointers to each user output values.

More...
 
char ** name_in
 

Name of each user input port.

More...
 
char ** name_out
 

Name of each user output port.

More...
 

Detailed Description

Contains information about UserIO.

This structure is intended to automate the treatment of UserIO, in particular for copying that from/to input/output port of Simulink S-function block.

Member Data Documentation

◆ n_in

int n_in

Number of user input port.

◆ n_out

int n_out

Number of user output port.

◆ name_in

char** name_in

Name of each user input port.

◆ name_out

char** name_out

Name of each user output port.

◆ ptr_in

double** ptr_in

List of pointers to each user input values.

First index is the index of the input port. Second index is the index of the value in the input port.

ptr_in[i][0] : pointer to the 1st element of the i-th input. ptr_in[i][1] : pointer to the 2nd element of the i-th input (if size_in[i] >= 2).

◆ ptr_out

double** ptr_out

List of pointers to each user output values.

First index is the index of the output port. Second index is the index of the value in the output port.

ptr_out[i][0] : pointer to the 1st element of the i-th output. ptr_out[i][1] : pointer to the 2nd element of the i-th output (if size_out[i] >= 2).

◆ size_in

int* size_in

The size of each input port.

The size is the number of element in the port.

size_in[i] = size of i-th user input

◆ size_out

int* size_out

The size of each output port.

size_out[i] = size of i-th user output


The documentation for this struct was generated from the following file: