rllib
1
|
#include <rlsiemenstcpclient.h>
Public Types | |
enum | ORG { ORG_DB = 1, ORG_M = 2, ORG_E = 3, ORG_A = 4, ORG_PEPA = 5, ORG_Z = 6, ORG_T = 7 } |
Public Types inherited from rlMailbox | |
enum | MailboxEnum { MAILBOX_ERROR = -1, MAILBOX_FULL = -2, WAIT = 1, NOWAIT = 0, MAX_MAILBOX = 256*256, OK = 2, COULD_NOT_CREATE_MAILBOX = 3, COULD_NOT_GET_KEY = 4, COULD_NOT_GET_CHAN_ID = 5 } |
Public Member Functions | |
rlSiemensTCPClient (const char *mbxname, const char *shmname, int shmsize, int have_to_swap=1) | |
virtual | ~rlSiemensTCPClient () |
int | write (int slave, int org, int dbnum, int start, int len, const unsigned char *buf, int function) |
int | writeBit (int slave, int org, int dbnum, int start, int offset, int len, const unsigned char *buf) |
int | writeByte (int slave, int org, int dbnum, int start, int len, const unsigned char *val) |
int | writeFloat (int slave, int org, int dbnum, int start, int len, const float *val) |
int | writeDword (int slave, int org, int dbnum, int start, int len, const int *val) |
int | writeShort (int slave, int org, int dbnum, int start, int len, const short *val) |
int | writeUDword (int slave, int org, int dbnum, int start, int len, const unsigned int *val) |
int | writeUShort (int slave, int org, int dbnum, int start, int len, const unsigned short *val) |
int | read (int offset, int len) |
float | Float (int index) |
int | Dword (int index) |
int | Short (int index) |
unsigned int | UDword (int index) |
unsigned int | UShort (int index) |
Public Member Functions inherited from rlMailbox | |
rlMailbox (const char *name) | |
virtual | ~rlMailbox () |
int | write (const void *buf, int len) |
int | printf (const char *format,...) |
int | read (void *buf, int maxlen, int wait=WAIT) |
int | setReadBufferSize (int size) |
const char * | read (int wait=WAIT) |
int | write (const char *message) |
void | clear () |
Public Attributes | |
unsigned char | buf [2048] |
Public Attributes inherited from rlMailbox | |
int | status |
char * | name |
Private Attributes | |
int | have_to_swap |
Private Attributes inherited from rlSharedMemory | |
int | status |
char * | name |
Additional Inherited Members | |
Private Types inherited from rlSharedMemory | |
enum | SharedMemoryEnum { OK = 0, ERROR_FILE, ERROR_SHMGET, ERROR_SHMAT, ERROR_SHMCTL } |
Private Member Functions inherited from rlSharedMemory | |
rlSharedMemory (const char *name, unsigned long size, int rwmode=0600) | |
virtual | ~rlSharedMemory () |
int | deleteSharedMemory () |
int | write (unsigned long offset, const void *buf, int len) |
int | read (unsigned long offset, void *buf, int len) |
int | readInt (unsigned long offset, int index) |
int | readShort (unsigned long offset, int index) |
int | readByte (unsigned long offset, int index) |
float | readFloat (unsigned long offset, int index) |
int | writeInt (unsigned long offset, int index, int val) |
int | writeShort (unsigned long offset, int index, int val) |
int | writeByte (unsigned long offset, int index, unsigned char val) |
int | writeFloat (unsigned long offset, int index, float val) |
void * | getUserAdr () |
int | shmKey () |
int | shmId () |
unsigned long | size () |
This class is for data acquisition within pvserver according to the pvbrowser principle. The corresponding daemon is generated by pvdevelop. It communicates by the means of a shared memory and a mailbox.
Definition at line 33 of file rlsiemenstcpclient.h.
Enumerator | |
---|---|
ORG_DB | |
ORG_M | |
ORG_E | |
ORG_A | |
ORG_PEPA | |
ORG_Z | |
ORG_T |
Definition at line 36 of file rlsiemenstcpclient.h.
rlSiemensTCPClient::rlSiemensTCPClient | ( | const char * | mbxname, |
const char * | shmname, | ||
int | shmsize, | ||
int | have_to_swap = 1 |
||
) |
Definition at line 35 of file rlsiemenstcpclient.cpp.
|
virtual |
Definition at line 41 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::Dword | ( | int | index | ) |
Definition at line 285 of file rlsiemenstcpclient.cpp.
float rlSiemensTCPClient::Float | ( | int | index | ) |
Definition at line 264 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::read | ( | int | offset, |
int | len | ||
) |
Definition at line 259 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::Short | ( | int | index | ) |
Definition at line 306 of file rlsiemenstcpclient.cpp.
unsigned int rlSiemensTCPClient::UDword | ( | int | index | ) |
Definition at line 323 of file rlsiemenstcpclient.cpp.
unsigned int rlSiemensTCPClient::UShort | ( | int | index | ) |
Definition at line 344 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::write | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned char * | buf, | ||
int | function = rlSiemensTCP::WriteByte |
||
) |
Definition at line 45 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeBit | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | offset, | ||
int | len, | ||
const unsigned char * | buf | ||
) |
Definition at line 68 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeByte | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned char * | val | ||
) |
Definition at line 78 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeDword | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const int * | val | ||
) |
Definition at line 123 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeFloat | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const float * | val | ||
) |
Definition at line 87 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeShort | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const short * | val | ||
) |
Definition at line 159 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeUDword | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned int * | val | ||
) |
Definition at line 191 of file rlsiemenstcpclient.cpp.
int rlSiemensTCPClient::writeUShort | ( | int | slave, |
int | org, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned short * | val | ||
) |
Definition at line 227 of file rlsiemenstcpclient.cpp.
unsigned char rlSiemensTCPClient::buf[2048] |
Definition at line 62 of file rlsiemenstcpclient.h.
|
private |
Definition at line 64 of file rlsiemenstcpclient.h.