rllib
1
|
#include <rlppiclient.h>
Public Types | |
enum | PPI_area { daveSD = 0x3, daveInputs = 0x81, daveOutputs = 0x82, daveFlags = 0x83, daveDB = 0x84, daveDI = 0x85, daveLocal = 0x86, daveV = 0x87, daveCounter = 28, daveTimer = 29 } |
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 | |
rlPPIClient (const char *mbxname, const char *shmname, int shmsize, int have_to_swap=1) | |
virtual | ~rlPPIClient () |
int | write (int slave, int area, int dbnum, int start, int len, const unsigned char *data) |
int | writeFloat (int slave, int area, int dbnum, int start, int len, const float *val) |
int | writeDword (int slave, int area, int dbnum, int start, int len, const int *val) |
int | writeShort (int slave, int area, int dbnum, int start, int len, const short *val) |
int | writeUDword (int slave, int area, int dbnum, int start, int len, const unsigned int *val) |
int | writeUShort (int slave, int area, 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 [512] |
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 from pvserver according to the pvbrowser principle. The according daemon is generated by pvdevelop. It communicates by the means of a shared memory and a mailbox.
Definition at line 28 of file rlppiclient.h.
Enumerator | |
---|---|
daveSD | |
daveInputs | |
daveOutputs | |
daveFlags | |
daveDB | |
daveDI | |
daveLocal | |
daveV | |
daveCounter | |
daveTimer |
Definition at line 31 of file rlppiclient.h.
rlPPIClient::rlPPIClient | ( | const char * | mbxname, |
const char * | shmname, | ||
int | shmsize, | ||
int | have_to_swap = 1 |
||
) |
Definition at line 31 of file rlppiclient.cpp.
|
virtual |
Definition at line 37 of file rlppiclient.cpp.
int rlPPIClient::Dword | ( | int | index | ) |
Definition at line 256 of file rlppiclient.cpp.
float rlPPIClient::Float | ( | int | index | ) |
Definition at line 235 of file rlppiclient.cpp.
int rlPPIClient::read | ( | int | offset, |
int | len | ||
) |
Definition at line 230 of file rlppiclient.cpp.
int rlPPIClient::Short | ( | int | index | ) |
Definition at line 277 of file rlppiclient.cpp.
unsigned int rlPPIClient::UDword | ( | int | index | ) |
Definition at line 294 of file rlppiclient.cpp.
unsigned int rlPPIClient::UShort | ( | int | index | ) |
Definition at line 315 of file rlppiclient.cpp.
int rlPPIClient::write | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned char * | data | ||
) |
Definition at line 41 of file rlppiclient.cpp.
int rlPPIClient::writeDword | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const int * | val | ||
) |
Definition at line 98 of file rlppiclient.cpp.
int rlPPIClient::writeFloat | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const float * | val | ||
) |
Definition at line 63 of file rlppiclient.cpp.
int rlPPIClient::writeShort | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const short * | val | ||
) |
Definition at line 133 of file rlppiclient.cpp.
int rlPPIClient::writeUDword | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned int * | val | ||
) |
Definition at line 164 of file rlppiclient.cpp.
int rlPPIClient::writeUShort | ( | int | slave, |
int | area, | ||
int | dbnum, | ||
int | start, | ||
int | len, | ||
const unsigned short * | val | ||
) |
Definition at line 199 of file rlppiclient.cpp.
unsigned char rlPPIClient::buf[512] |
Definition at line 58 of file rlppiclient.h.
|
private |
Definition at line 60 of file rlppiclient.h.