188 void set_buffer(
int _index,
unsigned char _databyte);
233 unsigned char _bEmcyBuffOverflow,
234 unsigned char _bPrmFault,
235 unsigned char _bGuardActive ,
236 unsigned char _bDeactivated);
241 bool &_bEmcyBuffOverflow,
244 bool &_bDeactivated);
359 #define DISCONNECTED 1 363 #define OPERATIONAL 5 364 #define PRE_OPERATIONAL 127 unsigned char bEmcyBuffOverflow
void set_bool(bool _value)
sets type to RL_BOOL and stores passed parameter data in databuffer
void set_CanOpenType(int _type)
recieves an CANopen typenumber and returns appropiate RL-Type
float get_float()
returns databuffer-content as float type.
void set_int(int _value)
sets type to RL_INT and stores passed parameter data in databuffer
void set_longlong(long int _value)
sets type to RL_LONGLONG and stores passed parameter data in databuffer
the IPCMSGSTRUCT is the transfer buffer which is send trough TCP sockets
void set_nodeerror(unsigned char _nodeerror)
double get_double()
returns databuffer-content as double type.
unsigned long int t_ulonglong
unsigned char bGuardActive
void set_DaemonType(rl_types _type)
alternative setter receives integer typenumber
unsigned char get_nodeerror()
returns actual node error
void set_uchar(unsigned char _value)
sets type to RL_UCHAR and stores passed parameter data in databuffer
void getIpcMsg(IPCMSGSTRUCT _myIpcMsg)
overwrites all data with IPCMSGSTRUCT data
class to handle CANopen types
bool get_nodestateFlags(bool &_bNodeNoResponse, bool &_bEmcyBuffOverflow, bool &_bPrmFault, bool &_bGuardActive, bool &_bDeactivated)
void set_ulonglong(unsigned long int _value)
sets type to RL_ULONGLONG and stores passed parameter data in databuffer
static int canOpenType2DeamonType(int _canopentype)
Function for typenumber conversion.
long get_rlmsgerr()
returns current errnumber
unsigned long int get_ulonglong()
returns databuffer-content as unsigned long long type
bool get_nodestateFlag_GuardActive()
void pdobuf2buf()
exchange bytes 0-7 from pdobuffer to databuffer
int get_DaemonType()
returns current of data stored in databuffer
bool get_nodestateFlag_PrmFault()
bool get_bool()
returns databuffer-content as bool type
long int get_longlong()
returns databuffer-content as long long type
void set_ushort(unsigned short _value)
sets type to RL_USHORT and stores passed parameter data in databuffer
unsigned long get_ulong()
returns databuffer-content as unsigned long type
char * type2str(int _typenr)
returns a pointer to a new 12 character string containing the name of the type
unsigned char get_uchar()
returns databuffer-content as uchar type
int get_CanOpenType()
returns the current type converted to CANopen typenumber
unsigned char t_databytes[247]
void set_rlmsgerr(long _errnr)
sets the errornumber. refer private varibale rlmsgerr for details
void buf2pdobuf()
exchange bytes 0-7 from databuffer to pdobuffer
void clearBuffer()
sets all bytes in databuffer to zero
int getLength()
returns number of bytes used for current type
void rlMsgErrOut()
prints MsgErrStr to StdOut
int get_int()
returns databuffer-content as integer type.
int get_CanOpenTypeLength(int _canopentype)
bool get_nodestateFlag_EmcyBuffOverflow()
unsigned char get_nodestate()
returns the nodestate. refer code numbers above
unsigned short get_ushort()
returns databuffer-content as short type
void set_ulong(unsigned long _value)
sets type to RL_ULONG and stores passed parameter data in databuffer
unsigned char pdobuffer[8]
external buffer for pdotransfer
void set_double(double _value)
sets type to RL_DOUBLE and stores passed parameter data in databuffer
unsigned char bActualError
void set_string(const char *_value)
IPCMSGSTRUCT createIpcMsg()
returns a IPCMSGSTRUCT filled with current object data
rlCanOpenTypes()
Constructor initializes with RL_NOTYPE.
char * get_string()
creates string filled with databuffer-content and returns a pointer
unsigned char get_buffer(int _index)
returns 1 byte from databuffer
void set_nodestateFlags(unsigned char _bNodeNoResponse, unsigned char _bEmcyBuffOverflow, unsigned char _bPrmFault, unsigned char _bGuardActive, unsigned char _bDeactivated)
sets type to RL_NODESTATE. Stores flag-data received from the device.
bool translate_CanOpenType(int _canopentype)
static int deamonType2CanOpenType(int _deamontype)
Function for typenumber conversion.
void set_float(float _value)
sets type to RL_FLOAT and stores passed parameter data in databuffer
void set_buffer(int _index, unsigned char _databyte)
transfer raw data into the databuffer
unsigned char bDeactivated
long get_long()
returns databuffer-content as long type
short get_short()
returns databuffer-content as short type
bool get_nodestateFlag_Deactivated()
rlCanOpenTypes & operator=(rlCanOpenTypes &cp)
copies all data from right object into left object
bool get_nodestateFlag_NoResponse()
read particular nodestade with the following functions
struct rlCanOpenTypes::@0::@2 bNodeFlagState
void invalidTypeError(int _typenr)
produce an invalid-type-warning to stdout. used by nearly all getter functions
void set_short(short _value)
sets type to RL_SHORT and stores passed parameter data in databuffer
void set_long(long _value)
sets type to RL_LONG and stores passed parameter data in databuffer
unsigned char bNodeNoResponse
void set_nodestate(unsigned char _nodestate)
sets current state of node.