RTL8306E软件开发寄存器操作编程指南RTL8306E/8306M/8304EPROGRAMMINGGUIDETheRTL8306EreleasepackagecontainsASICdrivers,whichprovidesgeneralAPIsthatbasedonuserconfigurationtoconfigurerelativeASICregisters.InsideoftheASICdriver,itusesGPIOtoemulateMDC/MDIOsignaltocommunicatewithRTL8306E.Thispartneedstobeportingtothetargetplatform.TheRTL8306Ereleasepackagecanalsobeappliedtootherchips,suchasRTL8304E/RTL8306M.TheseASICsmayhavedifferentportnumbers.ForexampleRTL8304Eonlyhave4ports,butRTL8306Ehave6ports.TheportnumberdescriptionsfordifferentASICscanbefoundinchapter7.ThisSDKAPIprogrammingguidefileusesRTL8306EasanexampletodescripttheusageofAPIfunctions.ButfordifferentASICs,theportparameterwhichisneededbysomeAPIfunctionisdifferentfromRTL8306E,duetotheAISCs’differentportnumbers.SoinordertouseASICdrivercode,it’srecommendedforyoutomakeclearoftheASIC’sportnumberatfirst.Andthenmakesomeconfigurationcodemodificationbasedonthedescriptionsofsector3.3andchapter7
1