Low Level Controller
6.3.2.2 Macro Definitions
Error conditions and other states of the ISAC-S must be reported to higher layers. This
reporting is realized by a few macros which are executed when such conditions are detected.
These macros can be mapped to any form of message a higher layer software requires. Any
kind of immediately necessary actions may be defined in those macros as well. By using such
constructs the code can be kept compact and clearly readable.
Layer 1 Related Status Message
DECODE_L1_STATUS
for L1 status (IC channel indication) decoding.
HDLC Controller Related Status and Error Messages
CRC_ERROR
CRC error.
MISSING_ACKNOWLEDGE
A ’Missing HDLC I-frame acknowledge’ is generated
when an acknowledge message for a previously
sent I-frame is outstanding and the HDLC message
transfer mode is changed from auto-mode to non-
auto-mode. An outstanding acknowledge is
indicated by the ISAC-S in register STAR2 (’timer
recovery status’ and ’waiting for acknowledge’ bits).
MMU_ERROR
No memory available to store incoming frame.
N201 error, HDLC frame is too long.
Peer receiver ready.
N201_ERROR
PEER_REC_READY
PEER_REC_BUSY
PROTOCOL_ERROR
REC_FRAME_OVERFLOW
REC_DATA_OVERFLOW
REC_ABORTED
Peer receive busy.
Protocol error (PCE interrupt).
Receive frame overflow.
Receive data overflow (RDO interrupt).
Receive aborted (RAB interrupt).
Transmit frame acknowledge.
TX_ACKNOWLEDGE
TIN_ERROR
TIN interrupt, status enquiry.
TX_DATA_UNDERRUN
XMR_ERROR
Transmit data underrun (XDU interrupt).
Transmit message repeat indication (XMR interrupt).
Following macros are used when a ’timer recovery status’ (register STAR2, bit TREC) is
recognized.
ENABLE_TREC_STATUS_CHECK enable ’timer recovery status’ check procedure.
DISABLE_TREC_STATUS_CHECK disable ’timer recovery status’ check procedure.
Semiconductor Group
279