NMS GR303 library channel callback events

This topic provides an alphabetical and numerical summary of the event messages that can be returned by NMS GR303 library callback functions.

Alphabetical channel callback event summary

Callback event

Hex

Decimal

Description

NMSGR303_EVENT_RX_ABORT

0x4

4

The HDLC channel received an ABORT sequence. No data is available and no buffer is attached.

NMSGR303_EVENT_RX_BUFFER_
OVERFLOW

0x7

7

An internal HDLC receive buffer overflow occurred. The HDLC received a frame of invalid length. No data is available and no buffer is attached.

Not supported for CG 6100C or CG 6500C boards.

NMSGR303_EVENT_RX_CRC_ERROR

0x5

5

The HDLC channel received a bad CRC for the receive frame. No data is available and no buffer is attached.

NMSGR303_EVENT_RX_ERROR

0x2

2

An HDLC receive error was returned. No data is available and no buffer is attached.

NMSGR303_EVENT_RX_FIFO_OVERRUN

0x3

3

A FIFO overrun occurred. No data is available and no buffer is attached.

Not supported for CG 6100C or CG 6500C boards.

NMSGR303_EVENT_RX_NON_ALIGNED_
OCTET

0x6

6

The HDLC channel received a non-aligned frame (not integer size of received bytes). No data is available and no buffer is attached.

Not supported for CG 6100C or CG 6500C boards.

NMSGR303_EVENT_RX_SUCCESS

0x1

1

A new HDLC frame was received and is available inside databuffer. datasize is set to the frame size.

NMSGR303_EVENT_TX_ERROR

0x8

8

An internal HDLC transmit error occurred (no buffer is attached).

NMSGR303_EVENT_TX_FIFO_OVERRUN

0x0a

10

An HDLC transmit FIFO overrun occurred. No buffer is attached.

Not supported for CG 6100C or CG 6500C boards.

NMSGR303_EVENT_TX_FIFO_UNDERRUN

0x9

9

An HDLC transmit FIFO underrun occurred. No buffer is attached.

Not supported for CG 6100C or CG 6500C boards.

NMSGR303_EVENT_TX_QUEUE_FULL

0x0b

11

The HDLC transmit internal send queue is full. No buffer is attached. This indicates an abnormal send rate.


Numerical channel callback event summary

Hex

Decimal

Callback event

0x1

1

NMSGR303_EVENT_RX_SUCCESS

0x4

4

NMSGR303_EVENT_RX_ABORT

0x7

7

NMSGR303_EVENT_RX_BUFFER_OVERFLOW

0x5

5

NMSGR303_EVENT_RX_CRC_ERROR

0x2

2

NMSGR303_EVENT_RX_ERROR

0x3

3

NMSGR303_EVENT_RX_FIFO_OVERRUN

0x6

6

NMSGR303_EVENT_RX_NON_ALIGNED_OCTET

0x8

8

NMSGR303_EVENT_TX_ERROR

0x9

9

NMSGR303_EVENT_TX_FIFO_UNDERRUN

0xA

10

NMSGR303_EVENT_TX_FIFO_OVERRUN

0xB

11

NMSGR303_EVENT_TX_QUEUE_FULL