ED247 Library  VA2.3.0
Implementation of ED247-A standard
Global resources

Detailed Description

Data Structures

struct  ed247_timestamp_t
 Timestamp structure, seconds from EPOCH (January 1st 1970) and nanoseconds offset with reference to previous field. More...
 

Typedefs

typedef uint16_t ed247_uid_t
 Unique identifier type.
 

Enumerations

enum  ed247_status_t {
  ED247_STATUS_SUCCESS = 0,
  ED247_STATUS_FAILURE,
  ED247_STATUS_TIMEOUT,
  ED247_STATUS_NODATA
}
 Status codes.
 
enum  ed247_log_level_t {
  ED247_LOG_LEVEL_MIN = 0,
  ED247_LOG_LEVEL_ERROR = ED247_LOG_LEVEL_MIN,
  ED247_LOG_LEVEL_WARNING = 1,
  ED247_LOG_LEVEL_DEFAULT = ED247_LOG_LEVEL_WARNING,
  ED247_LOG_LEVEL_INFO = 2,
  ED247_LOG_LEVEL_DEBUG = 3,
  ED247_LOG_LEVEL_CRAZY = 99,
  ED247_LOG_LEVEL_MAX = ED247_LOG_LEVEL_CRAZY,
  ED247_LOG_LEVEL_UNSET = 100
}
 Logging level.
 
enum  ed247_yesno_t {
  ED247_YESNO_NO = 0,
  ED247_YESNO_YES,
  ED247_YESNO__INVALID
}
 Yes / No.
 
enum  ed247_standard_t {
  ED247_STANDARD__INVALID,
  ED247_STANDARD_ED247,
  ED247_STANDARD_ED247A,
  ED247_STANDARD__COUNT
}
 ED247 Standard revisions.
 

Functions

LIBED247_EXPORT const char * ed247_get_implementation_name ()
 The name of the current implementation. More...
 
LIBED247_EXPORT const char * ed247_get_implementation_version ()
 The version of the current implementation. More...
 
LIBED247_EXPORT ed247_status_t ed247_set_log (ed247_log_level_t log_level, const char *log_filepath)
 Setup the logging parameters. More...
 
LIBED247_EXPORT ed247_status_t ed247_set_log_level (ed247_log_level_t log_level)
 Setup the logging level (see ed247_log_level_t) More...
 
LIBED247_EXPORT ed247_status_t ed247_get_log_level (ed247_log_level_t *log_level)
 Get the logging level (see ed247_log_level_t) More...
 

Function Documentation

LIBED247_EXPORT const char* ed247_get_implementation_name ( )

The name of the current implementation.

Returns
Current implementation name
LIBED247_EXPORT const char* ed247_get_implementation_version ( )

The version of the current implementation.

Returns
Current implementation version
LIBED247_EXPORT ed247_status_t ed247_set_log ( ed247_log_level_t  log_level,
const char *  log_filepath 
)

Setup the logging parameters.

Environment variables have the priority: This function will be ignored if they are set.

Parameters
[in]log_levelLogging level
[in]log_filepathLog file path
Return values
ED247_STATUS_SUCCESS
LIBED247_EXPORT ed247_status_t ed247_set_log_level ( ed247_log_level_t  log_level)

Setup the logging level (see ed247_log_level_t)

Environment variables have the priority: This function will be ignored if they are set.

Parameters
[in]log_levelLogging level
Return values
ED247_STATUS_SUCCESS
LIBED247_EXPORT ed247_status_t ed247_get_log_level ( ed247_log_level_t log_level)

Get the logging level (see ed247_log_level_t)

Parameters
[out]log_levelLogging level
Return values
ED247_STATUS_SUCCESS