12.07.2015 Views

SUB-20 User Manual - Dimax

SUB-20 User Manual - Dimax

SUB-20 User Manual - Dimax

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

35<strong>SUB</strong>-<strong>20</strong><strong>SUB</strong>-<strong>20</strong> API<strong>SUB</strong>_MDIO45_READREAD operationFor READ and POST-READ-INCREMENT-ADDRESS operations clause22.data or clause45.data will be filledwith data read from PHY.Return valueOn success function returns 0. Otherwise error code.Exampleunion sub_mdio_frame mdios[2];mdios[0].clause22.op = <strong>SUB</strong>_MDIO22_READ;mdios[0].clause22.phyad = 0x01;mdios[0].clause22.regad = 0x12;mdios[1].clause45.op = <strong>SUB</strong>_MDIO45_ADDR;mdios[1].clause45.prtad = 0x04;mdios[1].clause45.devad = 0x02;mdios[1].clause45.data = 0x55AA;rc = sub_mdio_xfer( hndl, 2, mdios );Compatibilitysub_mdio_xferFW versionLibrary versionsub_mdio_xfer_exFW versionLibrary version<strong>SUB</strong>_CFP_MSAFW versionLibrary version0.2.1 or grater0.1.12.12 or grater0.2.8 or grater0.1.12.18 or grater0.3.2 or grater0.1.12.24 or grater3.7 GPIO FunctionsGPIO Functional Description<strong>SUB</strong>-<strong>20</strong> GPIO can be in input or output state. GPIO state is defined by configuration bit. In output state GPIO willdrive high or low level depending on output status. In input state GPIO can be pulled high by internal weak pullupresistor.© <strong>20</strong>13 xdimax.com rev 2.17

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!