Serial console parser

Overview

Definition of unix TA serial console parse configuring support. More…

// typedefs

typedef struct serial_pattern_t serial_pattern_t;
typedef struct serial_pattern_h_t serial_pattern_h_t;
typedef struct serial_event_t serial_event_t;
typedef struct serial_event_h_t serial_event_h_t;
typedef struct serial_parser_t serial_parser_t;

// structs

struct serial_event_t;
struct serial_parser_t;
struct serial_pattern_t;

// global functions

SLIST_HEAD(serial_pattern_h_t, serial_pattern_t);
SLIST_HEAD(serial_event_h_t, serial_event_t);
te_errno ta_unix_serial_parser_init(void);
te_errno ta_unix_serial_parser_cleanup(void);
int te_serial_parser(serial_parser_t* parser);
int te_serial_parser_connect(serial_parser_t* parser);

// macros

#define PARSER_LIST_SIZE
#define TE_SERIAL_INTERVAL

Detailed Documentation

Definition of unix TA serial console parse configuring support.

Copyright (C) 2004-2022 OKTET Labs Ltd. All rights reserved.

Typedefs

typedef struct serial_pattern_t serial_pattern_t

List of the parser events

typedef struct serial_event_t serial_event_t

List of the parser events

typedef struct serial_parser_t serial_parser_t

List of the serial console parsers settings

Global Functions

te_errno ta_unix_serial_parser_init(void)

Initialize serial console parser configuration

Returns:

Status code

te_errno ta_unix_serial_parser_cleanup(void)

Cleanup serial console parser

Returns:

Status code

int te_serial_parser(serial_parser_t* parser)

Read data from parser thread

Parameters:

parser

Pointer to the parser config structure

int te_serial_parser_connect(serial_parser_t* parser)

Entry point to the parser thread

Parameters:

parser

Pointer to the parser config structure