transferArray
 All Data Structures Files Functions Variables Typedefs Macros
Data Structures | Macros | Typedefs | Functions
transferArrayRecord.c File Reference

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"
+ Include dependency graph for transferArrayRecord.c:

Data Structures

struct  WAVEFORM_SPEC
 
struct  TA_RECINFO
 

Macros

#define VERSION   (120)
 

Typedefs

typedef struct WAVEFORM_SPEC WAVEFORM_SPEC
 
typedef struct TA_RECINFO TA_RECINFO
 

Functions

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)
 

Detailed Description

Transfer from waveform record.

Author:
iitsuka
Date:
2014-09-04 11:59:08 +0900 (2014/09/04 (木))
Revision:
117

Macro Definition Documentation

#define VERSION   (120)

version number

Typedef Documentation

typedef struct WAVEFORM_SPEC WAVEFORM_SPEC

waveform specification structure

typedef struct TA_RECINFO TA_RECINFO

internal information structure

Function Documentation

static void monitor ( transferArrayRecord *  prec)
static

Raising Monitors

Parameters
[in,out]precPointer to transferArray record

+ Here is the caller graph for this function:

static long transferValue ( transferArrayRecord *  prec,
TA_RECINFO pinfo 
)
static

Transfer the value

Parameters
[in,out]precPointer to transferArray record
[in]pinfoPointer to internal infromation
Return values
0End successful
otherError occurred

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static long rec_error ( transferArrayRecord *  prec,
long  status,
const char *  pmsg 
)
static

record error process

Parameters
[in]precThe pointer to transferArrayRecord structure
[in]statusstatus code
[in]pmsgThe pointer to message to print console
Returns
status is returned as it is

+ Here is the caller graph for this function:

static long get_waveform_spec ( transferArrayRecord *  prec)
static

get specification of waveform

Parameters
[in]precThe pointer to a transferArrayRecord structure
Return values
0End successful
otherError occurred

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void* get_out_buff ( transferArrayRecord *  prec)
static

get pointer of buffer for out-link

Parameters
[in]precThe pointer to transferArrayRecord structure
Returns
The pointer to buffer

+ Here is the caller graph for this function:

static void* get_inp_buff ( transferArrayRecord *  prec)
static

get pointer of buffer for inp-link

Parameters
[in]precThe pointer to transferArrayRecord structure
Returns
The pointer to buffer

+ Here is the caller graph for this function:

static long init_record ( transferArrayRecord *  prec,
int  pass 
)
static

Initialize specific record

Parameters
[in,out]precPointer to transferArrayRecord structure
[in]passInitialization 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]precPointer to transferArray record
[in]pBufferThe pointer to a buffer space
[in]nRequestThe number of elements to read
[out]pnGetThe pointer to the read number of elements
[in]offsetOffset
Return values
0End successful
otherError occurred

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static long process ( transferArrayRecord *  prec)
static

Process record

Parameters
[in]precPointer to transferArray record
Return values
0End successful
otherError occurred

+ Here is the call graph for this function:

static long cvt_dbaddr ( DBADDR *  paddr)
static

Convert dbAddr definition

Parameters
[out]paddrPointer 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]paddrPointer to DBADDR structure
[out]no_elementsPointer to number of elements
[out]offsetPointer to offset of array
Returns
0 is certainly returned
static long put_array_info ( DBADDR *  paddr,
long  nNew 
)
static

Put array information

Parameters
[in]paddrPointer to DBADDR structure
[out]nNewNew value of number of read elements
Returns
0 is certainly returned
static void callback ( void *  usrPvt)
static

Callback function for dbCaPutLinkCallback

Parameters
[in]usrPvtPointer to user private data

+ Here is the caller graph for this function:

static long myPutLink ( transferArrayRecord *  prec,
char *  pOutBuff,
long  nPut 
)
static

Put data

Parameters
[in,out]precPointer to transferArray record
[in]pOutBuffPointer to put data
[in]nPutNumber of elements to put
Return values
0End successful
otherError occurred

+ Here is the call graph for this function:

+ Here is the caller graph for this function: