#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include "phal_hw_api.h"
#include "phal_sw_api.h"
#include "phal_daemons.h"
#include "stats.h"
#include "str.h"
#include "log.h"
Defines | |
#define | _GNU_SOURCE |
#define | EXIT_ON_FULLQUEUE |
#define | PHAL_STATUS_ABNSTOP 7 |
#define | MAX_OBJ_FD 50 |
#define | MAX_STATS 50 |
#define | MAX_TIME_COUNTERS 50 |
Functions | |
void | flush_logs (void) |
int | sizeoftype (int type) |
int | InitPHAL () |
void | ClosePHAL () |
int | InitCounter (char *name) |
void | StartCounter (int CounterId) |
void | StopCounter (int CounterId) |
unsigned int | GetTempo (float freq) |
int | GetTstamp (void) |
int | CreateItf (char *itf_name, int mode) |
int | CloseItf (int fd) |
int | WriteItf (int fd, void *buffer, int size) |
int | ReadItf (int fd, void *buffer, int size) |
int | GetItfStatus (int fd) |
int | InitParamFile (void) |
int | CloseParamFile (void) |
int | GetParam (char *ParamName, void *ParamValue, int ParamType, int ParamLen) |
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 BuffElemSize) |
int | SetObjectStatsValue (int StatId, void *Value, int Size) |
int | CreateLog () |
int | CloseLog (int LogId) |
void | Log (const char *format,...) |
int | WriteLog (int LogId, char *str) |
void | Relinquish (int nslots) |
int | Status (void) |
Variables | |
int | phalinitiated |
int | signaled |
#define _GNU_SOURCE |
#define EXIT_ON_FULLQUEUE |
#define MAX_OBJ_FD 50 |
#define MAX_STATS 50 |
#define MAX_TIME_COUNTERS 50 |
#define PHAL_STATUS_ABNSTOP 7 |
void flush_logs | ( | void | ) |
int sizeoftype | ( | int | type | ) |
int phalinitiated |
int signaled |