Low Level Controller
EXPORT
EXPORT
EXPORT
EXPORT
void
void
int
InitPeitab_ICC ();
Int_ICC ();
Loop_ICC ();
int
SwitchB_ICC ();
EXPORT
EXPORT
EXPORT
EXPORT
EXPORT
int
int
int
int
int
RecReady_ICC ();
ResetHDLC_ICC ();
StoreTEI_ICC ();
StoreSAPI_ICC ();
SendFrame_ICC ();
/* Local Functions
/* ===============
*/
*/
LOCAL
void
RX_ICC ();
/* Variables
/* =========
*/
*/
IMPORT
unsigned int
interrupt_act;
/* Function Declarations
/* =====================
*/
*/
/***************************************************************************/
/*
/*
/*
/*
/*
/*
*/
*/
*/
*/
*/
*/
Function: InitPeitab_ICC ()
Parms : ’*pt’ pointer to the assigned PEITAB array element
’base’ address of detected ICC/ISAC
purpose : initialization of the PEITAB elemtn for an ICC / ISAC-S
/***************************************************************************/
EXPORT void
InitPeitab_ICC (pt, base)
register PEITAB
IO_PORT
*pt;
base;
{
BYTE
version;
IO_PORT
reg_rbch = base + ICC_RBCH;
/* read the ICC/ISAC-S (ISAC-P)
/* version number
/* 0 for versions A1, A2, ..
/* 1 and greater for versions
/* 2.x [Bx] (x=1,2,3,4) and later
*/
*/
*/
*/
*/
version = inp (reg_rbch);
/* and set the device identifier
/* accordingly
*/
*/
if (version != 0)
{
if (pt->pt_device == PT_ICC)
pt->pt_device = PT_ICC_B;
if (pt->pt_device == PT_ISAC_S)
Semiconductor Group
286