#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Defines | |
#define | xprintf printf |
#define | PHAL_STATUS_INIT 2 |
#define | PHAL_STATUS_RUN 3 |
#define | PHAL_STATUS_PAUSE 4 |
#define | PHAL_STATUS_STOP 6 |
#define | STAT_TYPE_CHAR 1 |
#define | STAT_TYPE_UCHAR 2 |
#define | STAT_TYPE_FLOAT 3 |
#define | STAT_TYPE_INT 4 |
#define | STAT_TYPE_SHORT 5 |
#define | FLOW_READ_ONLY 1 |
#define | FLOW_WRITE_ONLY 2 |
#define | FLOW_READ_WRITE 3 |
Functions | |
int | InitPHAL () |
void | ClosePHAL () |
void | Relinquish (int nslots) |
int | Status (void) |
int | CreateItf (char *name, int mode) |
int | CloseItf (int fd) |
int | ReadItf (int fd, void *buffer, int size) |
int | WriteItf (int fd, void *buffer, int size) |
int | GetItfStatus (int fd) |
int | GetTstamp (void) |
unsigned int | GetTempo (float freq) |
int | InitParamFile (void) |
int | GetParam (char *ParamName, void *ParamValue, int ParamType, int ParamLen) |
int | CloseParamFile (void) |
int | InitStat (char *StatName, int StatType, int StatSize) |
int | InitObjectStat (char *ObjectName, char *StatName, int StatType, int StatSize) |
int | CloseStat (int StatId) |
int | CloseObjectStat (int StatId) |
int | SetStatsValue (int StatId, void *Value, int Size) |
int | GetStatsValue (int StatId, void *Buffer, int BuffByteSize) |
int | SetObjectStatsValue (int StatId, void *Value, int Size) |
int | InitCounter (char *name) |
void | StartCounter (int CounterId) |
void | StopCounter (int CounterId) |
int | CreateLog () |
int | CloseLog (int LogId) |
int | WriteLog (int LogId, char *str) |
#define STAT_TYPE_CHAR 1 |
#define STAT_TYPE_FLOAT 3 |
#define STAT_TYPE_INT 4 |
#define STAT_TYPE_SHORT 5 |
#define STAT_TYPE_UCHAR 2 |
#define xprintf printf |
int Status | ( | void | ) |
Get Status.
Get current object status. This function does not return until object has something to do, that is, status is RUN or the first INIT or CLOSE.