OC192 LIU Access Functions
[OCM/OC192 Library]


Detailed Description

OC192 Mezzanine LIU Serial Access Functions The oc192_mdio functions are for reading and writing the LIU chip through its serial protocol.


Functions

void edt_oc192_mdio_dump (EdtDev *edt_p)
 
Parameters:
edt_p 

void edt_oc192_mdio_init (EdtDev *edt_p)
 
Parameters:
edt_p 

void edt_oc192_mdio_loopback (EdtDev *edt_p, int on)
 
Parameters:
edt_p 

unsigned char edt_oc192_mdio_read (EdtDev *edt_p, unsigned char address)
 
Parameters:
edt_p pointer to device structure

void edt_oc192_mdio_set_prbs23 (EdtDev *edt_p, int on)
 
Parameters:
edt_p 

void edt_oc192_mdio_set_prbs31 (EdtDev *edt_p, int on)
 
Parameters:
edt_p 

void edt_oc192_mdio_standard (EdtDev *edt_p)
 
Parameters:
edt_p 

void edt_oc192_mdio_write (EdtDev *edt_p, unsigned char address, unsigned char value)
 
Parameters:
edt_p 

void edt_oc192_reset_liu (EdtDev *edt_p)
 
Parameters:
edt_p 

int edt_oc192_set_liu (EdtDev *edt_p, int mode)
 
Parameters:
edt_p 


Function Documentation

void edt_oc192_mdio_loopback ( EdtDev edt_p,
int  on 
)

Parameters:
edt_p 

Parameters:
on 

Definition at line 1153 of file lib_ocm.c.

unsigned char edt_oc192_mdio_read ( EdtDev edt_p,
unsigned char  address 
)

Parameters:
edt_p pointer to device structure

Parameters:
address 
Returns:
byte read
read a byte at address from the LIU

Definition at line 963 of file lib_ocm.c.

void edt_oc192_mdio_set_prbs23 ( EdtDev edt_p,
int  on 
)

Parameters:
edt_p 

Parameters:
on 

Definition at line 1171 of file lib_ocm.c.

void edt_oc192_mdio_set_prbs31 ( EdtDev edt_p,
int  on 
)

Parameters:
edt_p 

Parameters:
on 

Definition at line 1191 of file lib_ocm.c.

void edt_oc192_mdio_write ( EdtDev edt_p,
unsigned char  address,
unsigned char  value 
)

Parameters:
edt_p 

Parameters:
address 
value 

Definition at line 1015 of file lib_ocm.c.

int edt_oc192_set_liu ( EdtDev edt_p,
int  mode 
)

Parameters:
edt_p 

Parameters:
mode OC192 mode constant
Returns:
0 on success, -1 on incorrect mode
Sets the liu to the mode

Definition at line 1254 of file lib_ocm.c.


Generated on Mon May 12 16:39:12 2008 by  doxygen 1.5.1