Transfer from waveform record.
More...
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "dbDefs.h"
#include "epicsPrint.h"
#include "alarm.h"
#include "dbAccess.h"
#include "dbEvent.h"
#include "dbFldTypes.h"
#include "dbScan.h"
#include "devSup.h"
#include "errMdef.h"
#include "recSup.h"
#include "recGbl.h"
#include "cantProceed.h"
#include "menuYesNo.h"
#include "transferArrayRecord.h"
#include "epicsExport.h"
#include "epicsString.h"
#include "epicsEvent.h"
|
static void | monitor (transferArrayRecord *prec) |
|
static long | transferValue (transferArrayRecord *prec, TA_RECINFO *pinfo) |
|
static long | rec_error (transferArrayRecord *prec, long status, const char *pmsg) |
| record error process More...
|
|
static long | get_waveform_spec (transferArrayRecord *prec) |
| get specification of waveform More...
|
|
static void * | get_out_buff (transferArrayRecord *prec) |
| get pointer of buffer for out-link More...
|
|
static void * | get_inp_buff (transferArrayRecord *prec) |
| get pointer of buffer for inp-link More...
|
|
static long | init_record (transferArrayRecord *prec, int pass) |
|
static long | get_inp_value (transferArrayRecord *prec, void *pBuffer, long nRequest, long *pnGet, size_t offset) |
| Data read-out with offset specification. More...
|
|
static long | process (transferArrayRecord *prec) |
|
static long | cvt_dbaddr (DBADDR *paddr) |
|
static long | get_array_info (DBADDR *paddr, long *no_elements, long *offset) |
|
static long | put_array_info (DBADDR *paddr, long nNew) |
|
static void | callback (void *usrPvt) |
|
static long | myPutLink (transferArrayRecord *prec, char *pOutBuff, long nPut) |
|
Transfer from waveform record.
- Author:
- iitsuka
- Date:
- 2014-09-04 11:59:08 +0900 (2014/09/04 (木))
- Revision:
- 117
waveform specification structure
internal information structure
static void monitor |
( |
transferArrayRecord * |
prec | ) |
|
|
static |
Raising Monitors
- Parameters
-
[in,out] | prec | Pointer to transferArray record |
static long transferValue |
( |
transferArrayRecord * |
prec, |
|
|
TA_RECINFO * |
pinfo |
|
) |
| |
|
static |
Transfer the value
- Parameters
-
[in,out] | prec | Pointer to transferArray record |
[in] | pinfo | Pointer to internal infromation |
- Return values
-
0 | End successful |
other | Error occurred |
static long rec_error |
( |
transferArrayRecord * |
prec, |
|
|
long |
status, |
|
|
const char * |
pmsg |
|
) |
| |
|
static |
record error process
- Parameters
-
[in] | prec | The pointer to transferArrayRecord structure |
[in] | status | status code |
[in] | pmsg | The pointer to message to print console |
- Returns
- status is returned as it is
static long get_waveform_spec |
( |
transferArrayRecord * |
prec | ) |
|
|
static |
get specification of waveform
- Parameters
-
[in] | prec | The pointer to a transferArrayRecord structure |
- Return values
-
0 | End successful |
other | Error occurred |
static void* get_out_buff |
( |
transferArrayRecord * |
prec | ) |
|
|
static |
get pointer of buffer for out-link
- Parameters
-
[in] | prec | The pointer to transferArrayRecord structure |
- Returns
- The pointer to buffer
static void* get_inp_buff |
( |
transferArrayRecord * |
prec | ) |
|
|
static |
get pointer of buffer for inp-link
- Parameters
-
[in] | prec | The pointer to transferArrayRecord structure |
- Returns
- The pointer to buffer
static long init_record |
( |
transferArrayRecord * |
prec, |
|
|
int |
pass |
|
) |
| |
|
static |
Initialize specific record
- Parameters
-
[in,out] | prec | Pointer to transferArrayRecord structure |
[in] | pass | Initialization pass
- 0 : 1st pass
- 1 : 2nd pass(Link resolved)
|
- Returns
- 0 is certainly returned
static long get_inp_value |
( |
transferArrayRecord * |
prec, |
|
|
void * |
pBuffer, |
|
|
long |
nRequest, |
|
|
long * |
pnGet, |
|
|
size_t |
offset |
|
) |
| |
|
static |
Data read-out with offset specification.
- Parameters
-
[in] | prec | Pointer to transferArray record |
[in] | pBuffer | The pointer to a buffer space |
[in] | nRequest | The number of elements to read |
[out] | pnGet | The pointer to the read number of elements |
[in] | offset | Offset |
- Return values
-
0 | End successful |
other | Error occurred |
static long process |
( |
transferArrayRecord * |
prec | ) |
|
|
static |
Process record
- Parameters
-
[in] | prec | Pointer to transferArray record |
- Return values
-
0 | End successful |
other | Error occurred |
static long cvt_dbaddr |
( |
DBADDR * |
paddr | ) |
|
|
static |
Convert dbAddr definition
- Parameters
-
[out] | paddr | Pointer to DBADDR structre |
- Returns
- 0 is certainly returned
static long get_array_info |
( |
DBADDR * |
paddr, |
|
|
long * |
no_elements, |
|
|
long * |
offset |
|
) |
| |
|
static |
Get array information
- Parameters
-
[in] | paddr | Pointer to DBADDR structure |
[out] | no_elements | Pointer to number of elements |
[out] | offset | Pointer to offset of array |
- Returns
- 0 is certainly returned
static long put_array_info |
( |
DBADDR * |
paddr, |
|
|
long |
nNew |
|
) |
| |
|
static |
Put array information
- Parameters
-
[in] | paddr | Pointer to DBADDR structure |
[out] | nNew | New value of number of read elements |
- Returns
- 0 is certainly returned
static void callback |
( |
void * |
usrPvt | ) |
|
|
static |
Callback function for dbCaPutLinkCallback
- Parameters
-
[in] | usrPvt | Pointer to user private data |
static long myPutLink |
( |
transferArrayRecord * |
prec, |
|
|
char * |
pOutBuff, |
|
|
long |
nPut |
|
) |
| |
|
static |
Put data
- Parameters
-
[in,out] | prec | Pointer to transferArray record |
[in] | pOutBuff | Pointer to put data |
[in] | nPut | Number of elements to put |
- Return values
-
0 | End successful |
other | Error occurred |