#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include "alarm.h"
#include "asLib.h"
#include "cantProceed.h"
#include "db_access.h"
#include "dbDefs.h"
#include "ellLib.h"
#include "epicsEvent.h"
#include "epicsMutex.h"
#include "epicsStdio.h"
#include "epicsThread.h"
#include "errlog.h"
#include "taskwd.h"
#include "cadef.h"
#include "caerr.h"
#include "caeventmask.h"
#include "asCa.h"
#include "asDbLib.h"
#include "callback.h"
#include "epicsExport.h"
Go to the source code of this file.
#define epicsExportSharedSymbols |
Definition at line 265 of file asCa.c.
int ascarFP(FILE *fp, int level)
int ascarFP |
( |
FILE * |
fp, |
|
|
int |
level |
|
) |
| |
Definition at line 267 of file asCa.c.
274 fprintf(fp,
"access security not started\n");
284 pcapvt = pasginp->
capvt;
288 if(level>1 || (level==1 && state!=
cs_conn)) {
289 fprintf(fp,
"connected:");
292 else if(state==
cs_conn) fprintf(fp,
"yes ");
293 else if(state==
cs_closed) fprintf(fp,
"closed");
294 else fprintf(fp,
"unknown");
295 fprintf(fp,
" read:%s write:%s",
304 fprintf(fp,
"%d channels %d not connected\n",n,nbad);
LIBCA_API unsigned epicsStdCall ca_write_access(chid chan)
LIBCOM_API volatile ASBASE * pasbase
LIBCA_API enum channel_state epicsStdCall ca_state(chid chan)
LIBCA_API const char *epicsStdCall ca_host_name(chid channel)
#define ellNext(PNODE)
Find the next node in list.
LIBCA_API const char *epicsStdCall ca_name(chid chan)
LIBCA_API unsigned epicsStdCall ca_read_access(chid chan)
#define ellFirst(PLIST)
Find the first node in list.
Definition at line 230 of file asCa.c.
244 errMessage(0,
"asCaStart: taskSpawn Failure\n");
#define epicsMutexMustCreate()
Create an epicsMutex semaphore for use from C code.
#define errMessage(S, PM)
LIBCOM_API epicsEventId epicsEventMustCreate(epicsEventInitialState initialState)
Create an epicsEvent for use from C code.
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
LIBCOM_API unsigned int epicsStdCall epicsThreadGetStackSize(epicsThreadStackSizeClass size)
LIBCOM_API void epicsEventMustWait(epicsEventId id)
Wait for an event (see epicsEventWait()).
epicsThreadId epicsStdCall epicsThreadCreate(const char *name, unsigned int priority, unsigned int stackSize, EPICSTHREADFUNC funptr, void *parm)
#define epicsEventSignal(ID)
A synonym for epicsEventTrigger().
#define epicsThreadPriorityScanLow
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).
void(* EPICSTHREADFUNC)(void *parm)
void ascaStats |
( |
int * |
pchans, |
|
|
int * |
pdiscon |
|
) |
| |
Definition at line 308 of file asCa.c.
315 if (pchans) *pchans = n;
316 if (pdiscon) *pdiscon = nbad;
332 if (pchans) *pchans = n;
333 if (pdiscon) *pdiscon = nbad;
LIBCOM_API volatile ASBASE * pasbase
LIBCA_API enum channel_state epicsStdCall ca_state(chid chan)
#define ellNext(PNODE)
Find the next node in list.
#define ellFirst(PLIST)
Find the first node in list.
Definition at line 254 of file asCa.c.
256 if(threadid==0)
return;
void epicsStdCall epicsMutexUnlock(epicsMutexId pmutexNode)
Release the semaphore.
LIBCOM_API void epicsEventMustWait(epicsEventId id)
Wait for an event (see epicsEventWait()).
#define epicsEventSignal(ID)
A synonym for epicsEventTrigger().
#define epicsMutexMustLock(ID)
Claim a semaphore (see epicsMutexLock()).