12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766 |
- /**
- * @file csl_edma3Aux.h
- *
- * @brief
- * This is the EDMA Auxilary Header File which exposes the various
- * CSL Functional Layer API's to configure the EDMA Module.
- *
- * \par
- * ============================================================================
- * @n (C) Copyright 2002, 2003, 2004, 2005, 2008, 2009, 2016 Texas Instruments, Inc.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the
- * distribution.
- *
- * Neither the name of Texas Instruments Incorporated nor the names of
- * its contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
- #ifndef CSL_EDMA3AUX_H
- #define CSL_EDMA3AUX_H
- #include <ti/csl/csl_edma3.h>
- /** @addtogroup CSL_EDMA3_FUNCTION
- @{ */
- /** ============================================================================
- * @n@b CSL_edma3GetInfo
- *
- * @b Description
- * @n The function gets the EDMA Channel Controller Configuration Information
- * which includes reading the peripheral revision register and configuration
- * register.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- response Output parameter populated with the configuration information.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_CFG,TPCC_TPCC_PID
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_Edma3QueryInfo info;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get Module Info
- CSL_edma3GetInfo(hModule,&info);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetInfo
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3QueryInfo* response
- );
- static inline void CSL_edma3GetInfo
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3QueryInfo* response
- )
- {
- /* Populate the configuration and peripheral id. */
- response->config = hModule->regs->TPCC_CFG;
- response->revision = hModule->regs->TPCC_PID;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3MapDMAChannelToParamBlock
- *
- * @b Description
- * @n The function maps the DMA Channel to the specified PARAM Entry Block.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel Number which is to be mapped.
- paramId Parameter Identifier to be mapped to.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n DMA Channel is mapped to the specified PARAM Block.
- *
- * @b Writes
- * @n TPCC_TPCC_DCHMAP_PAENTRY
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps DMA Channel 1 to Param ID Block 5.
- CSL_edma3MapDMAChannelToParamBlock(hModule, 1, 5);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3MapDMAChannelToParamBlock
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Uint16 paramId
- );
- static inline void CSL_edma3MapDMAChannelToParamBlock
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Uint16 paramId
- )
- {
- /* Map the DMA channel to the parameter block. */
- CSL_FINS(hModule->regs->TPCC_DCHMAP[dmaChannel], TPCC_TPCC_DCHMAP0_PAENTRY, (Uint32)paramId);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetDMAChannelToParamBlockMapping
- *
- * @b Description
- * @n The function gets the PARAM Entry ID to which a specific DMA Channel
- * is mapped.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel Number whose mapping is to be found.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n Paramater ID to which the specific DMA Channel is mapped to.
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_DCHMAP_PAENTRY
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint16 paramId;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the mapping information for DMA channel 1.
- paramId = CSL_edma3GetDMAChannelToParamBlockMapping(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint16 CSL_edma3GetDMAChannelToParamBlockMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- );
- static inline Uint16 CSL_edma3GetDMAChannelToParamBlockMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- )
- {
- /* Get the Param Block to which the DMA channel is mapped to. */
- return (Uint16) CSL_FEXT(hModule->regs->TPCC_DCHMAP[dmaChannel], TPCC_TPCC_DCHMAP0_PAENTRY);
- }
- /** ============================================================================
- * @n@b CSL_edma3MapQDMAChannelToParamBlock
- *
- * @b Description
- * @n The function maps the QDMA Channel to the specified PARAM Entry Block.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel Number which is to be mapped.
- paramId Parameter Identifier to be mapped to.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n QDMA Channel is mapped to the specified PARAM Block.
- *
- * @b Writes
- * @n TPCC_TPCC_QCHMAP_PAENTRY
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps QDMA Channel 1 to Param ID Block 5.
- CSL_edma3MapQDMAChannelToParamBlock(hModule, 1, 5);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3MapQDMAChannelToParamBlock
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint16 paramId
- );
- static inline void CSL_edma3MapQDMAChannelToParamBlock
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint16 paramId
- )
- {
- CSL_FINS(hModule->regs->TPCC_QCHMAP[qdmaChannel], TPCC_TPCC_QCHMAP0_PAENTRY, (Uint32)paramId);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetQDMAChannelToParamBlockMapping
- *
- * @b Description
- * @n The function gets the PARAM Entry ID to which a specific QDMA Channel
- * is mapped.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel Number whose mapping is to be found.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n Paramater ID to which the specific QDMA Channel is mapped to.
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QCHMAP_PAENTRY
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the mapping information for QDMA channel 1.
- paramId = CSL_edma3GetQDMAChannelMap(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint16 CSL_edma3GetQDMAChannelToParamBlockMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- );
- static inline Uint16 CSL_edma3GetQDMAChannelToParamBlockMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- )
- {
- return (Uint16) CSL_FEXT(hModule->regs->TPCC_QCHMAP[qdmaChannel], TPCC_TPCC_QCHMAP0_PAENTRY);
- }
- /** ============================================================================
- * @n@b CSL_edma3SetQDMATriggerWord
- *
- * @b Description
- * @n The function sets the trigger word of the PaRAM Entry block.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel Number which is to be configured.
- trword Trigger Word to be configured.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n QDMA Channel is mapped to the specified PARAM Block.
- *
- * @b Writes
- * @n TPCC_TPCC_QCHMAP_TRWORD
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Configure QDMA Channel 1 Trigger Word as 0
- CSL_edma3SetQDMATriggerWord(hModule, 1, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3SetQDMATriggerWord
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8 trword
- );
- static inline void CSL_edma3SetQDMATriggerWord
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8 trword
- )
- {
- CSL_FINS(hModule->regs->TPCC_QCHMAP[qdmaChannel], TPCC_TPCC_QCHMAP0_TRWORD, (Uint32)trword);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetQDMATriggerWord
- *
- * @b Description
- * @n The function gets the trigger word of the PaRAM Entry block.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel Number which is to be configured.
- trword Trigger Word to be retreived populated by this API.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n QDMA Channel is mapped to the specified PARAM Block.
- *
- * @b Reads
- * @n TPCC_TPCC_QCHMAP_TRWORD
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 trWord;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the QDMA Channel 1 Trigger Word
- trWord = CSL_edma3SetQDMATriggerWord(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetQDMATriggerWord
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8* trword
- );
- static inline void CSL_edma3GetQDMATriggerWord
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8* trword
- )
- {
- /* Extract the trigger word. */
- *trword = (Uint8)CSL_FEXT(hModule->regs->TPCC_QCHMAP[qdmaChannel], TPCC_TPCC_QCHMAP0_TRWORD);
- }
- /** ============================================================================
- * @n@b CSL_edma3MapDMAChannelToEventQueue
- *
- * @b Description
- * @n The function maps the event ID to the specific DMA Queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel to which the event is mapped.
- eventQueue Event Queue which is to be mapped.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n DMA Channel is mapped to the specified Event Queue.
- *
- * @b Writes
- * @n TPCC_TPCC_DMAQNUM_E0;TPCC_TPCC_DMAQNUM_E1;TPCC_TPCC_DMAQNUM_E2;
- * TPCC_TPCC_DMAQNUM_E3;TPCC_TPCC_DMAQNUM_E4;TPCC_TPCC_DMAQNUM_E5;
- * TPCC_TPCC_DMAQNUM_E6;TPCC_TPCC_DMAQNUM_E7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps DMA Channel 1 to Event Queue 2
- CSL_edma3MapDMAChannelToEventQueue(hModule, 1, 2);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3MapDMAChannelToEventQueue
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Uint8 eventQueue
- );
- static inline void CSL_edma3MapDMAChannelToEventQueue
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Uint8 eventQueue
- )
- {
- Uint8 dmaRegIndex;
- Uint8 lsb;
- /* There are 8 channels per register; use this to determine the DMAQNUM register Index. */
- dmaRegIndex = dmaChannel >> 3;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)((dmaChannel - (Uint8)(dmaRegIndex * ((Uint8)8U))) << 2);
- /* Write the event Queue */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- CSL_FINSR(hModule->regs->TPCC_DMAQNUM[dmaRegIndex], (temp_Var), (Uint32)(lsb), (Uint32)eventQueue);
- }
- /** ============================================================================
- * @n@b CSL_edma3GetDMAChannelToEventQueueMapping
- *
- * @b Description
- * @n The function gets the mapping of the DMA Channel to the Event Queue
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel for which the mapping is to be retreived.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n Event Queue to which the DMA channel is mapped to
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_DMAQNUM_E0;TPCC_TPCC_DMAQNUM_E1;TPCC_TPCC_DMAQNUM_E2;
- * TPCC_TPCC_DMAQNUM_E3;TPCC_TPCC_DMAQNUM_E4;TPCC_TPCC_DMAQNUM_E5;
- * TPCC_TPCC_DMAQNUM_E6;TPCC_TPCC_DMAQNUM_E7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 eventQueue;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the Event Queue mapping of DMA Channel 1
- eventQueue = CSL_edma3GetDMAChannelToEventQueueMapping(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint8 CSL_edma3GetDMAChannelToEventQueueMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- );
- static inline Uint8 CSL_edma3GetDMAChannelToEventQueueMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- )
- {
- Uint8 dmaRegIndex;
- Uint8 lsb;
- /* There are 8 channels per register; use this to determine the DMAQNUM register Index. */
- dmaRegIndex = dmaChannel >> 3;
- /* Compute the bit position from where the value is to be retreived. */
- lsb = (Uint8)((dmaChannel - (Uint8)(dmaRegIndex * ((Uint8)8U))) << 2);
- /* Get the event queue. */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- return (Uint8)(CSL_FEXTR(hModule->regs->TPCC_DMAQNUM[dmaRegIndex], (temp_Var), (Uint32)(lsb)));
- }
- /** ============================================================================
- * @n@b CSL_edma3MapQDMAChannelToEventQueue
- *
- * @b Description
- * @n The function maps the event ID to the specific DMA Queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel to which the event is mapped.
- eventQueue Event Queue which is to be mapped.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n DMA Channel is mapped to the specified Event Queue.
- *
- * @b Writes
- * @n TPCC_TPCC_QDMAQNUM_E0;TPCC_TPCC_QDMAQNUM_E1;TPCC_TPCC_QDMAQNUM_E2;
- * TPCC_TPCC_QDMAQNUM_E3;TPCC_TPCC_QDMAQNUM_E4;TPCC_TPCC_QDMAQNUM_E5;
- * TPCC_TPCC_QDMAQNUM_E6;TPCC_TPCC_QDMAQNUM_E7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps QDMA Channel 1 to Event Queue 2
- CSL_edma3MapQDMAChannelToEventQueue(hModule, 1, 2);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3MapQDMAChannelToEventQueue
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8 eventQueue
- );
- static inline void CSL_edma3MapQDMAChannelToEventQueue
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Uint8 eventQueue
- )
- {
- Uint8 lsb;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)(qdmaChannel << 2);
- /* Write the event Queue */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- CSL_FINSR(hModule->regs->TPCC_QDMAQNUM, (temp_Var), (Uint32)(lsb), (Uint32)eventQueue);
- }
- /** ============================================================================
- * @n@b CSL_edma3GetQDMAChannelToEventQueueMapping
- *
- * @b Description
- * @n The function gets the mapping of the QDMA Channel to the Event Queue
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel for which the mapping is to be retreived.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n Event Queue to which the QDMA channel is mapped to
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QDMAQNUM_E0;TPCC_TPCC_QDMAQNUM_E1;TPCC_TPCC_QDMAQNUM_E2;
- * TPCC_TPCC_QDMAQNUM_E3;TPCC_TPCC_QDMAQNUM_E4;TPCC_TPCC_QDMAQNUM_E5;
- * TPCC_TPCC_QDMAQNUM_E6;TPCC_TPCC_QDMAQNUM_E7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 eventQueue;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the Event Queue mapping of QDMA Channel 1
- eventQueue = CSL_edma3GetQDMAChannelToEventQueueMapping(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint8 CSL_edma3GetQDMAChannelToEventQueueMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- );
- static inline Uint8 CSL_edma3GetQDMAChannelToEventQueueMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- )
- {
- Uint8 lsb;
- /* Compute the bit position from where the value is to be retreived. */
- lsb = (Uint8)(qdmaChannel << 2);
- /* Get the event Queue */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- return (Uint8)(CSL_FEXTR(hModule->regs->TPCC_QDMAQNUM, (temp_Var), (Uint32)(lsb)));
- }
- /** ============================================================================
- * @n@b CSL_edma3MapEventQueueToTC
- *
- * @b Description
- * @n The function maps the event queue to a specific TC
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event Queue which is to be mapped.
- tcNum TC to which the queue is to be mapped to.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Event Queue is mapped to the specific TC
- *
- * @b Writes
- * @n TPCC_TPCC_QUETCMAP_TCNUMQ0;TPCC_TPCC_QUETCMAP_TCNUMQ1;TPCC_TPCC_QUETCMAP_TCNUMQ2;
- * TPCC_TPCC_QUETCMAP_TCNUMQ3;TPCC_TPCC_QUETCMAP_TCNUMQ4;TPCC_TPCC_QUETCMAP_TCNUMQ5;
- * TPCC_TPCC_QUETCMAP_TCNUMQ6;TPCC_TPCC_QUETCMAP_TCNUMQ7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps Event Queue 1 to TC0
- CSL_edma3MapEventQueueToTC(hModule, 1, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3MapEventQueueToTC
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 tcNum
- );
- static inline void CSL_edma3MapEventQueueToTC
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 tcNum
- )
- {
- Uint8 lsb;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)(eventQueue << 2);
- /* Write the event Queue */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- CSL_FINSR(hModule->regs->TPCC_QUETCMAP, (temp_Var), (Uint32)(lsb), (Uint32)tcNum);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetEventQueueToTCMapping
- *
- * @b Description
- * @n The function gets the TC mapping for the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event Queue which for which the mapping is needed.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n TC Number to which the event queue is mapped to
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Event Queue is mapped to the specific TC
- *
- * @b Reads
- * @n TPCC_TPCC_QUETCMAP_TCNUMQ0;TPCC_TPCC_QUETCMAP_TCNUMQ1;TPCC_TPCC_QUETCMAP_TCNUMQ2;
- * TPCC_TPCC_QUETCMAP_TCNUMQ3;TPCC_TPCC_QUETCMAP_TCNUMQ4;TPCC_TPCC_QUETCMAP_TCNUMQ5;
- * TPCC_TPCC_QUETCMAP_TCNUMQ6;TPCC_TPCC_QUETCMAP_TCNUMQ7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 tcNum;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the TC mapping for Event Queue 1
- tcNum = CSL_edma3GetEventQueueToTCMapping(hModule, 1, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint8 CSL_edma3GetEventQueueToTCMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue
- );
- static inline Uint8 CSL_edma3GetEventQueueToTCMapping
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue
- )
- {
- Uint8 lsb;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)(eventQueue << 2);
- /* Get the TC Number */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- return (Uint8)(CSL_FEXTR(hModule->regs->TPCC_QUETCMAP, (temp_Var), (Uint32)(lsb)));
- }
- /** ============================================================================
- * @n@b CSL_edma3SetEventQueuePriority
- *
- * @b Description
- * @n The function sets the priority of the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event Queue whose priority is to be configured.
- priority Priority to be configured.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Event Queue is configured to the specific priority.
- *
- * @b Writes
- * @n TPCC_TPCC_QUEPRI_PRIQ0;TPCC_TPCC_QUEPRI_PRIQ1;TPCC_TPCC_QUEPRI_PRIQ2;
- * TPCC_TPCC_QUEPRI_PRIQ3;TPCC_TPCC_QUEPRI_PRIQ4;TPCC_TPCC_QUEPRI_PRIQ5;
- * TPCC_TPCC_QUEPRI_PRIQ6;TPCC_TPCC_QUEPRI_PRIQ7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Maps Event Queue 2 to Priority 4
- CSL_edma3SetEventQueuePriority(hModule, 2, 4);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3SetEventQueuePriority
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 priority
- );
- static inline void CSL_edma3SetEventQueuePriority
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 priority
- )
- {
- Uint8 lsb;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)(eventQueue << 2);
- /* Write the priority. */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- CSL_FINSR(hModule->regs->TPCC_QUEPRI, (temp_Var), (Uint32)(lsb), (Uint32)priority);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetEventQueuePriority
- *
- * @b Description
- * @n The function gets the priority of the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event Queue whose priority is to be retrieved.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n Priority to which the Event Queue is mapped to.
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Event Queue is configured to the specific priority.
- *
- * @b Reads
- * @n TPCC_TPCC_QUEPRI_PRIQ0;TPCC_TPCC_QUEPRI_PRIQ1;TPCC_TPCC_QUEPRI_PRIQ2;
- * TPCC_TPCC_QUEPRI_PRIQ3;TPCC_TPCC_QUEPRI_PRIQ4;TPCC_TPCC_QUEPRI_PRIQ5;
- * TPCC_TPCC_QUEPRI_PRIQ6;TPCC_TPCC_QUEPRI_PRIQ7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 priority;
- // Module Initialization
- CSL_edma3Init(&context);
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj, CSL_EDMA3, NULL, &status);
- // Get the priority of Event Queue 2.
- priority = CSL_edma3GetEventQueuePriority(hModule, 2);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline Uint8 CSL_edma3GetEventQueuePriority
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue
- );
- static inline Uint8 CSL_edma3GetEventQueuePriority
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue
- )
- {
- Uint8 lsb;
- /* Compute the bit position where the value is to be written. */
- lsb = (Uint8)(eventQueue << 2);
- /* Get the priority. */
- Uint32 temp_Var = ((Uint32)lsb) + 2U;
- return (Uint8)(CSL_FEXTR(hModule->regs->TPCC_QUEPRI, (temp_Var), (Uint32)(lsb)));
- }
- /** ============================================================================
- * @n@b CSL_edma3GetEventMissed
- *
- * @b Description
- * @n Queries all the events missed.Since there may be upto 64 EDMA
- * channels + upto 8 QDMA channels,this points to an array of 3,
- * 32 bit elements.Gets the status of the missed events.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- missedLo missed [0] - holds status from EMR
- missedHi missed [1] - holds status from EMRH
- missedQdma missed [2] - holds status from QEMR
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_EMR,TPCC_TPCC_EMRH,TPCC_TPCC_QEMR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 missedLo, missedHi, missedQdma;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get the missed events
- CSL_edma3GetEventMissed(hModule, &missedEdma, &missedEdmaHi, &missedQdma);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetEventMissed
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32* missedLo,
- CSL_BitMask32* missedHi,
- CSL_BitMask32* missedQdma
- );
- static inline void CSL_edma3GetEventMissed
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32* missedLo,
- CSL_BitMask32* missedHi,
- CSL_BitMask32* missedQdma
- )
- {
- /* Reading the missed Status registers */
- *missedLo = hModule->regs->TPCC_EMR;
- *missedHi = hModule->regs->TPCC_EMRH;
- *missedQdma = hModule->regs->TPCC_QEMR;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsDMAChannelMissedEventSet
- *
- * @b Description
- * @n The API checks determines if there is a missed Event for a specific
- * DMA channel
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel to be checked
- response This is populated by the API and returns TRUE if the
- event was missed else it returns FALSE.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_EMR_EMR0;TPCC_TPCC_EMR_EMR1;TPCC_TPCC_EMR_EMR2;
- * TPCC_TPCC_EMR_EMR3;TPCC_TPCC_EMR_EMR4;TPCC_TPCC_EMR_EMR5;
- * TPCC_TPCC_EMR_EMR6;TPCC_TPCC_EMR_EMR7;TPCC_TPCC_EMR_EMR8;
- * TPCC_TPCC_EMR_EMR9;TPCC_TPCC_EMR_EMR10;TPCC_TPCC_EMR_EMR11;
- * TPCC_TPCC_EMR_EMR12;TPCC_TPCC_EMR_EMR13;TPCC_TPCC_EMR_EMR14;
- * TPCC_TPCC_EMR_EMR15;TPCC_TPCC_EMR_EMR16;TPCC_TPCC_EMR_EMR17;
- * TPCC_TPCC_EMR_EMR18;TPCC_TPCC_EMR_EMR19;TPCC_TPCC_EMR_EMR20;
- * TPCC_TPCC_EMR_EMR21;TPCC_TPCC_EMR_EMR22;TPCC_TPCC_EMR_EMR23;
- * TPCC_TPCC_EMR_EMR24;TPCC_TPCC_EMR_EMR25;TPCC_TPCC_EMR_EMR26;
- * TPCC_TPCC_EMR_EMR27;TPCC_TPCC_EMR_EMR28;TPCC_TPCC_EMR_EMR29;
- * TPCC_TPCC_EMR_EMR30;TPCC_TPCC_EMR_EMR31;
- * TPCC_TPCC_EMRH_EMR32;TPCC_TPCC_EMRH_EMR33;TPCC_TPCC_EMRH_EMR34;
- * TPCC_TPCC_EMRH_EMR35;TPCC_TPCC_EMRH_EMR36;TPCC_TPCC_EMRH_EMR37;
- * TPCC_TPCC_EMRH_EMR38;TPCC_TPCC_EMRH_EMR39;TPCC_TPCC_EMRH_EMR40;
- * TPCC_TPCC_EMRH_EMR41;TPCC_TPCC_EMRH_EMR42;TPCC_TPCC_EMRH_EMR43;
- * TPCC_TPCC_EMRH_EMR44;TPCC_TPCC_EMRH_EMR45;TPCC_TPCC_EMRH_EMR46;
- * TPCC_TPCC_EMRH_EMR47;TPCC_TPCC_EMRH_EMR48;TPCC_TPCC_EMRH_EMR49;
- * TPCC_TPCC_EMRH_EMR50;TPCC_TPCC_EMRH_EMR51;TPCC_TPCC_EMRH_EMR52;
- * TPCC_TPCC_EMRH_EMR53;TPCC_TPCC_EMRH_EMR54;TPCC_TPCC_EMRH_EMR55;
- * TPCC_TPCC_EMRH_EMR56;TPCC_TPCC_EMRH_EMR57;TPCC_TPCC_EMRH_EMR58;
- * TPCC_TPCC_EMRH_EMR59;TPCC_TPCC_EMRH_EMR60;TPCC_TPCC_EMRH_EMR61;
- * TPCC_TPCC_EMRH_EMR62;TPCC_TPCC_EMRH_EMR63;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool missed;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Check if DMA Channel 1 has an event missed.
- CSL_edma3IsDMAChannelMissedEventSet(hModule, 1, &missed);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsDMAChannelMissedEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsDMAChannelMissedEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- )
- {
- /* Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EMR: Extract the appropriate bit. */
- if (CSL_FEXTR(hModule->regs->TPCC_EMR, (Uint32)(dmaChannel), (Uint32)(dmaChannel)))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- else
- {
- /* EMRH: Extract the appropriate bit. */
- if (CSL_FEXTR(hModule->regs->TPCC_EMRH, ((Uint32)(dmaChannel)-32U), ((Uint32)(dmaChannel)-32U)))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsQDMAChannelMissedEventSet
- *
- * @b Description
- * @n The API checks determines if there is a missed Event for a specific
- * DMA channel
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel to be checked
- response This is populated by the API and returns TRUE if the
- event was missed else it returns FALSE.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QEMR_QEMR0;TPCC_TPCC_QEMR_QEMR1;TPCC_TPCC_QEMR_QEMR2;
- * TPCC_TPCC_QEMR_QEMR3;TPCC_TPCC_QEMR_QEMR4;TPCC_TPCC_QEMR_QEMR5;
- * TPCC_TPCC_QEMR_QEMR6;TPCC_TPCC_QEMR_QEMR7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool missed;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Check if DMA Channel 0 has an event missed.
- CSL_edma3IsQDMAChannelMissedEventSet(hModule, 0, &missed);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsQDMAChannelMissedEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsQDMAChannelMissedEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- )
- {
- /* Extract the appropriate QDMA Channel bit. */
- if (CSL_FEXTR(hModule->regs->TPCC_QEMR, (Uint32)(qdmaChannel), (Uint32)(qdmaChannel)))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3EventMissedClear
- *
- * @b Description
- * @n Clear the Event missed errors
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- missedLo Lower 32 of of the Event Missed register needing to
- be cleared (This is the same value as EMR)
- missedHi Upper 32 of of the Event Missed register needing to
- be cleared (This is the same value as EMRH)
- missedQdma Bit mask of Qdma events missed needing to be cleared
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Clears all the missed events
- *
- * @b Writes
- * @n TPCC_TPCC_EMCR,TPCC_TPCC_EMCRH,TPCC_TPCC_QEMCR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 missedLo, missedHi, missedQdma;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get the missed events
- CSL_edma3GetEventMissed(hModule, &missedEdma, &missedEdmaHi, &missedQdma);
- ...
- // Clear the error
- CSL_edma3EventMissedClear(hModule,missedLo, missedHi,qdmamissed);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3EventsMissedClear
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32 missedLo,
- CSL_BitMask32 missedHi,
- CSL_BitMask32 missedQdma
- );
- static inline void CSL_edma3EventsMissedClear
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32 missedLo,
- CSL_BitMask32 missedHi,
- CSL_BitMask32 missedQdma
- )
- {
- /* Clear the reported missed events. */
- hModule->regs->TPCC_EMCR = missedLo;
- hModule->regs->TPCC_EMCRH = missedHi;
- hModule->regs->TPCC_QEMCR = missedQdma;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearDMAMissedEvent
- *
- * @b Description
- * @n The API clears the missed event for the specific DMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel for which the event is cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Clears all the missed events
- *
- * @b Writes
- * @n TPCC_TPCC_EMCR_EMCR0;TPCC_TPCC_EMCR_EMCR1;TPCC_TPCC_EMCR_EMCR2;
- * TPCC_TPCC_EMCR_EMCR3;TPCC_TPCC_EMCR_EMCR4;TPCC_TPCC_EMCR_EMCR5;
- * TPCC_TPCC_EMCR_EMCR6;TPCC_TPCC_EMCR_EMCR7;TPCC_TPCC_EMCR_EMCR8;
- * TPCC_TPCC_EMCR_EMCR9;TPCC_TPCC_EMCR_EMCR10;TPCC_TPCC_EMCR_EMCR11;
- * TPCC_TPCC_EMCR_EMCR12;TPCC_TPCC_EMCR_EMCR13;TPCC_TPCC_EMCR_EMCR14;
- * TPCC_TPCC_EMCR_EMCR15;TPCC_TPCC_EMCR_EMCR16;TPCC_TPCC_EMCR_EMCR17;
- * TPCC_TPCC_EMCR_EMCR18;TPCC_TPCC_EMCR_EMCR19;TPCC_TPCC_EMCR_EMCR20;
- * TPCC_TPCC_EMCR_EMCR21;TPCC_TPCC_EMCR_EMCR22;TPCC_TPCC_EMCR_EMCR23;
- * TPCC_TPCC_EMCR_EMCR24;TPCC_TPCC_EMCR_EMCR25;TPCC_TPCC_EMCR_EMCR26;
- * TPCC_TPCC_EMCR_EMCR27;TPCC_TPCC_EMCR_EMCR28;TPCC_TPCC_EMCR_EMCR29;
- * TPCC_TPCC_EMCR_EMCR30;TPCC_TPCC_EMCR_EMCR31;
- * TPCC_TPCC_EMCRH_EMCR32;TPCC_TPCC_EMCRH_EMCR33;TPCC_TPCC_EMCRH_EMCR34
- * TPCC_TPCC_EMCRH_EMCR35;TPCC_TPCC_EMCRH_EMCR36;TPCC_TPCC_EMCRH_EMCR37
- * TPCC_TPCC_EMCRH_EMCR38;TPCC_TPCC_EMCRH_EMCR39;TPCC_TPCC_EMCRH_EMCR40
- * TPCC_TPCC_EMCRH_EMCR41;TPCC_TPCC_EMCRH_EMCR42;TPCC_TPCC_EMCRH_EMCR43
- * TPCC_TPCC_EMCRH_EMCR44;TPCC_TPCC_EMCRH_EMCR45;TPCC_TPCC_EMCRH_EMCR46
- * TPCC_TPCC_EMCRH_EMCR47;TPCC_TPCC_EMCRH_EMCR48;TPCC_TPCC_EMCRH_EMCR49
- * TPCC_TPCC_EMCRH_EMCR50;TPCC_TPCC_EMCRH_EMCR51;TPCC_TPCC_EMCRH_EMCR52
- * TPCC_TPCC_EMCRH_EMCR53;TPCC_TPCC_EMCRH_EMCR54;TPCC_TPCC_EMCRH_EMCR55
- * TPCC_TPCC_EMCRH_EMCR56;TPCC_TPCC_EMCRH_EMCR57;TPCC_TPCC_EMCRH_EMCR58
- * TPCC_TPCC_EMCRH_EMCR59;TPCC_TPCC_EMCRH_EMCR60;TPCC_TPCC_EMCRH_EMCR61
- * TPCC_TPCC_EMCRH_EMCR62;TPCC_TPCC_EMCRH_EMCR63;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 missedLo, missedHi, missedQdma;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Clear missed DMA 1 channel event.
- CSL_edma3ClearDMAMissedEvent(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearDMAMissedEvent
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3ClearDMAMissedEvent
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- )
- {
- /* Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EMCR: Set the appropriate DMA Channel bit. */
- hModule->regs->TPCC_EMCR = CSL_FMKR ((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* EMCRH: Set the appropriate DMA Channel bit. */
- dmaChannel = dmaChannel - 32U;
- hModule->regs->TPCC_EMCRH = CSL_FMKR ((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearQDMAMissedEvent
- *
- * @b Description
- * @n The API clears the missed event for the specific QDMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel for which the event is cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n Clears all the missed events
- *
- * @b Writes
- * @n TPCC_TPCC_QEMCR_QEMCR0;TPCC_TPCC_QEMCR_QEMCR1;TPCC_TPCC_QEMCR_QEMCR2;
- * TPCC_TPCC_QEMCR_QEMCR3;TPCC_TPCC_QEMCR_QEMCR4;TPCC_TPCC_QEMCR_QEMCR5;
- * TPCC_TPCC_QEMCR_QEMCR6;TPCC_TPCC_QEMCR_QEMCR7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 missedLo, missedHi, missedQdma;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Clear missed QDMA Channel 1 event.
- CSL_edma3ClearQDMAMissedEvent(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearQDMAMissedEvent
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- );
- static inline void CSL_edma3ClearQDMAMissedEvent
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- )
- {
- /* Set the appropriate QDMA Channel bit. */
- CSL_FINSR(hModule->regs->TPCC_QEMCR, (uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetControllerError
- *
- * @b Description
- * @n The function gets the status of the controller error.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- ccStat Controller Error populated by this API
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_CCERR_QTHRXD0;TPCC_TPCC_CCERR_QTHRXD1;TPCC_TPCC_CCERR_QTHRXD2;
- * TPCC_TPCC_CCERR_QTHRXD3;TPCC_TPCC_CCERR_QTHRXD4;TPCC_TPCC_CCERR_QTHRXD5;
- * TPCC_TPCC_CCERR_QTHRXD6;TPCC_TPCC_CCERR_QTHRXD7,
- * TPCC_TPCC_CCERR_TCCERR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_Edma3CtrlErrStat ccError;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get Controller Error
- status = CSL_edma3GetControllerError(hModule,&ccError);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetControllerError
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3CtrlErrStat* ccStat
- );
- static inline void CSL_edma3GetControllerError
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3CtrlErrStat* ccStat
- )
- {
- /* Extract the Queue Thresholds and TCC-Error. */
- ccStat->error = hModule->regs->TPCC_CCERR & 0xFFU ;
- ccStat->exceedTcc = (Bool)(CSL_FEXT(hModule->regs->TPCC_CCERR, TPCC_TPCC_CCERR_TCCERR));
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearControllerError
- *
- * @b Description
- * @n Channel Controller Error Fault.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- ccStat Error Status which is to be cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_CCERRCLR_QTHRXD0;TPCC_TPCC_CCERRCLR_QTHRXD1;TPCC_TPCC_CCERRCLR_QTHRXD2;
- * TPCC_TPCC_CCERRCLR_QTHRXD3;TPCC_TPCC_CCERRCLR_QTHRXD4;TPCC_TPCC_CCERRCLR_QTHRXD5;
- * TPCC_TPCC_CCERRCLR_QTHRXD6;TPCC_TPCC_CCERRCLR_QTHRXD7,
- * TPCC_TPCC_CCERR_TCCERR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_Edma3CtrlErrStat ccError;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get Controller Error
- status = CSL_edma3GetControllerError(hModule,&ccError);
- ...
- // Clear the error.
- CSL_edma3ClearControllerError(hModule,&ccError);
- ...
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3ClearControllerError
- (
- CSL_Edma3Handle hModule,
- const CSL_Edma3CtrlErrStat* ccStat
- );
- static inline void CSL_edma3ClearControllerError
- (
- CSL_Edma3Handle hModule,
- const CSL_Edma3CtrlErrStat* ccStat
- )
- {
- /* Clears the errors */
- hModule->regs->TPCC_CCERRCLR = CSL_FMK(TPCC_TPCC_CCERR_TCCERR, (Uint32)ccStat->exceedTcc) | ccStat->error;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ErrorEval
- *
- * @b Description
- * @n This API enables enables evaluation of errros for the specified
- * view/shadow region.Sets EVAL bit of the EEVAL register in the Global
- * register space
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_EEVAL_EVAL=1
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Set the Error Interrupt Evaluation
- CSL_edma3ErrorEval(hModule);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ErrorEval (CSL_Edma3Handle hModule);
- static inline void CSL_edma3ErrorEval (CSL_Edma3Handle hModule)
- {
- hModule->regs->TPCC_EEVAL = CSL_FMK(TPCC_TPCC_EEVAL_EVAL, (Uint32)1U);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3DmaRegionAccessEnable
- *
- * @b Description
- * @n This API enables read/write access to the shadow regions for the
- * specific DMA channels.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- edmaRegion Shadow Region
- access Region bits to be programmed
- drae Bitmask to be enabled in DRAE
- draeh Bitmask to be enabled in DRAEH
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_DRA_DRAE_E0=1;TPCC_TPCC_DRA_DRAE_E1=1;TPCC_TPCC_DRA_DRAE_E2=1;
- * TPCC_TPCC_DRA_DRAE_E3=1;TPCC_TPCC_DRA_DRAE_E4=1;TPCC_TPCC_DRA_DRAE_E5=1;
- * TPCC_TPCC_DRA_DRAE_E6=1;TPCC_TPCC_DRA_DRAE_E7=1;TPCC_TPCC_DRA_DRAE_E8=1;
- * TPCC_TPCC_DRA_DRAE_E9=1;TPCC_TPCC_DRA_DRAE_E10=1;TPCC_TPCC_DRA_DRAE_E11=1;
- * TPCC_TPCC_DRA_DRAE_E12=1;TPCC_TPCC_DRA_DRAE_E13=1;TPCC_TPCC_DRA_DRAE_E14=1;
- * TPCC_TPCC_DRA_DRAE_E15=1;TPCC_TPCC_DRA_DRAE_E16=1;TPCC_TPCC_DRA_DRAE_E17=1;
- * TPCC_TPCC_DRA_DRAE_E18=1;TPCC_TPCC_DRA_DRAE_E19=1;TPCC_TPCC_DRA_DRAE_E20=1;
- * TPCC_TPCC_DRA_DRAE_E21=1;TPCC_TPCC_DRA_DRAE_E22=1;TPCC_TPCC_DRA_DRAE_E23=1;
- * TPCC_TPCC_DRA_DRAE_E24=1;TPCC_TPCC_DRA_DRAE_E25=1;TPCC_TPCC_DRA_DRAE_E26=1;
- * TPCC_TPCC_DRA_DRAE_E27=1;TPCC_TPCC_DRA_DRAE_E28=1;TPCC_TPCC_DRA_DRAE_E29=1;
- * TPCC_TPCC_DRA_DRAE_E30=1;TPCC_TPCC_DRA_DRAE_E31=1;
- * @n TPCC_TPCC_DRA_DRAEH_E32=1;TPCC_TPCC_DRA_DRAEH_E33=1;TPCC_TPCC_DRA_DRAEH_E34=1;
- * TPCC_TPCC_DRA_DRAEH_E35=1;TPCC_TPCC_DRA_DRAEH_E36=1;TPCC_TPCC_DRA_DRAEH_E37=1;
- * TPCC_TPCC_DRA_DRAEH_E38=1;TPCC_TPCC_DRA_DRAEH_E39=1;TPCC_TPCC_DRA_DRAEH_E40=1;
- * TPCC_TPCC_DRA_DRAEH_E41=1;TPCC_TPCC_DRA_DRAEH_E42=1;TPCC_TPCC_DRA_DRAEH_E43=1;
- * TPCC_TPCC_DRA_DRAEH_E44=1;TPCC_TPCC_DRA_DRAEH_E45=1;TPCC_TPCC_DRA_DRAEH_E46=1;
- * TPCC_TPCC_DRA_DRAEH_E47=1;TPCC_TPCC_DRA_DRAEH_E48=1;TPCC_TPCC_DRA_DRAEH_E49=1;
- * TPCC_TPCC_DRA_DRAEH_E50=1;TPCC_TPCC_DRA_DRAEH_E51=1;TPCC_TPCC_DRA_DRAEH_E52=1;
- * TPCC_TPCC_DRA_DRAEH_E53=1;TPCC_TPCC_DRA_DRAEH_E54=1;TPCC_TPCC_DRA_DRAEH_E55=1;
- * TPCC_TPCC_DRA_DRAEH_E56=1;TPCC_TPCC_DRA_DRAEH_E57=1;TPCC_TPCC_DRA_DRAEH_E58=1;
- * TPCC_TPCC_DRA_DRAEH_E59=1;TPCC_TPCC_DRA_DRAEH_E60=1;TPCC_TPCC_DRA_DRAEH_E61=1;
- * TPCC_TPCC_DRA_DRAEH_E62=1;TPCC_TPCC_DRA_DRAEH_E63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Enable read/write access in Region 0 for DMA Channel 0 to 7
- CSL_edma3DmaRegionAccessEnable(hModule, 0, 0x000000FF, 0x0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3DmaRegionAccessEnable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 drae,
- CSL_BitMask32 draeh
- );
- static inline void CSL_edma3DmaRegionAccessEnable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 drae,
- CSL_BitMask32 draeh
- )
- {
- /* Set the appropriate bit masks. */
- hModule->regs->TPCC_DRA[edmaRegion].DRAE |= drae;
- #ifdef SOC_C6678
- if (edmaRegion != 0) {
- #endif
- hModule->regs->TPCC_DRA[edmaRegion].DRAEH |= draeh;
- #ifdef SOC_C6678
- }
- #endif
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3DmaRegionAccessDisable
- *
- * @b Description
- * @n This API disables read/write access to the shadow regions for the
- * specific DMA channels.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- edmaRegion Shadow Region
- access Region bits to be programmed
- drae Bitmask to be disabled in DRAE
- draeh Bitmask to be disabled in DRAEH
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_DRA_DRAE_E0=0;TPCC_TPCC_DRA_DRAE_E1=0;TPCC_TPCC_DRA_DRAE_E2=0;
- * TPCC_TPCC_DRA_DRAE_E3=0;TPCC_TPCC_DRA_DRAE_E4=0;TPCC_TPCC_DRA_DRAE_E5=0;
- * TPCC_TPCC_DRA_DRAE_E6=0;TPCC_TPCC_DRA_DRAE_E7=0;TPCC_TPCC_DRA_DRAE_E8=0;
- * TPCC_TPCC_DRA_DRAE_E9=0;TPCC_TPCC_DRA_DRAE_E10=0;TPCC_TPCC_DRA_DRAE_E11=0;
- * TPCC_TPCC_DRA_DRAE_E12=0;TPCC_TPCC_DRA_DRAE_E13=0;TPCC_TPCC_DRA_DRAE_E14=0;
- * TPCC_TPCC_DRA_DRAE_E15=0;TPCC_TPCC_DRA_DRAE_E16=0;TPCC_TPCC_DRA_DRAE_E17=0;
- * TPCC_TPCC_DRA_DRAE_E18=0;TPCC_TPCC_DRA_DRAE_E19=0;TPCC_TPCC_DRA_DRAE_E20=0;
- * TPCC_TPCC_DRA_DRAE_E21=0;TPCC_TPCC_DRA_DRAE_E22=0;TPCC_TPCC_DRA_DRAE_E23=0;
- * TPCC_TPCC_DRA_DRAE_E24=0;TPCC_TPCC_DRA_DRAE_E25=0;TPCC_TPCC_DRA_DRAE_E26=0;
- * TPCC_TPCC_DRA_DRAE_E27=0;TPCC_TPCC_DRA_DRAE_E28=0;TPCC_TPCC_DRA_DRAE_E29=0;
- * TPCC_TPCC_DRA_DRAE_E30=0;TPCC_TPCC_DRA_DRAE_E31=0;
- * @n TPCC_TPCC_DRA_DRAEH_E32=0;TPCC_TPCC_DRA_DRAEH_E33=0;TPCC_TPCC_DRA_DRAEH_E34=0;
- * TPCC_TPCC_DRA_DRAEH_E35=0;TPCC_TPCC_DRA_DRAEH_E36=0;TPCC_TPCC_DRA_DRAEH_E37=0;
- * TPCC_TPCC_DRA_DRAEH_E38=0;TPCC_TPCC_DRA_DRAEH_E39=0;TPCC_TPCC_DRA_DRAEH_E40=0;
- * TPCC_TPCC_DRA_DRAEH_E41=0;TPCC_TPCC_DRA_DRAEH_E42=0;TPCC_TPCC_DRA_DRAEH_E43=0;
- * TPCC_TPCC_DRA_DRAEH_E44=0;TPCC_TPCC_DRA_DRAEH_E45=0;TPCC_TPCC_DRA_DRAEH_E46=0;
- * TPCC_TPCC_DRA_DRAEH_E47=0;TPCC_TPCC_DRA_DRAEH_E48=0;TPCC_TPCC_DRA_DRAEH_E49=0;
- * TPCC_TPCC_DRA_DRAEH_E50=0;TPCC_TPCC_DRA_DRAEH_E51=0;TPCC_TPCC_DRA_DRAEH_E52=0;
- * TPCC_TPCC_DRA_DRAEH_E53=0;TPCC_TPCC_DRA_DRAEH_E54=0;TPCC_TPCC_DRA_DRAEH_E55=0;
- * TPCC_TPCC_DRA_DRAEH_E56=0;TPCC_TPCC_DRA_DRAEH_E57=0;TPCC_TPCC_DRA_DRAEH_E58=0;
- * TPCC_TPCC_DRA_DRAEH_E59=0;TPCC_TPCC_DRA_DRAEH_E60=0;TPCC_TPCC_DRA_DRAEH_E61=0;
- * TPCC_TPCC_DRA_DRAEH_E62=0;TPCC_TPCC_DRA_DRAEH_E63=0;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Disable read/write access in Region 0 for DMA Channel 0 to 7
- CSL_edma3DmaRegionAccessDisable(hModule, 0, 0x000000FF, 0x0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3DmaRegionAccessDisable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 drae,
- CSL_BitMask32 draeh
- );
- static inline void CSL_edma3DmaRegionAccessDisable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 drae,
- CSL_BitMask32 draeh
- )
- {
- /* Clear the appropriate bit masks. */
- hModule->regs->TPCC_DRA[edmaRegion].DRAE &= ~drae;
- hModule->regs->TPCC_DRA[edmaRegion].DRAEH &= ~draeh;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3QdmaRegionAccessEnable
- *
- * @b Description
- * @n This API enables read/write access to the shadow regions for the
- * specific QDMA channels.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- edmaRegion Shadow Region
- qrae Bitmask to be enabled in QRAE
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QRAE_E0=1;TPCC_TPCC_QRAE_E1=1;TPCC_TPCC_QRAE_E2=1;
- * TPCC_TPCC_QRAE_E3=1;TPCC_TPCC_QRAE_E4=1;TPCC_TPCC_QRAE_E5=1;
- * TPCC_TPCC_QRAE_E6=1;TPCC_TPCC_QRAE_E7=1
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Enable read/write access in Region 0 for QDMA 0 to 3
- CSL_edma3QdmaRegionAccessEnable(hModule, 0, 0x0000000F);
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3QdmaRegionAccessEnable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 qrae
- );
- static inline void CSL_edma3QdmaRegionAccessEnable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 qrae
- )
- {
- /* Set the appropriate bit masks. */
- hModule->regs->TPCC_QRAE[edmaRegion] |= qrae;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3QdmaRegionAccessDisable
- *
- * @b Description
- * @n This API disables read/write access to the shadow regions for the
- * specific QDMA channels.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- edmaRegion Shadow Region.
- qrae Bitmask to be enabled in QRAE
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QRAE_E0=0;TPCC_TPCC_QRAE_E1=0;TPCC_TPCC_QRAE_E2=0;
- * TPCC_TPCC_QRAE_E3=0;TPCC_TPCC_QRAE_E4=0;TPCC_TPCC_QRAE_E5=0;
- * TPCC_TPCC_QRAE_E6=0;TPCC_TPCC_QRAE_E7=0
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Disable read/write access in Region 0 for QDMA 0 to 3
- CSL_edma3QdmaRegionAccessDisable(hModule, 0, 0x0000000F);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3QdmaRegionAccessDisable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 qrae
- );
- static inline void CSL_edma3QdmaRegionAccessDisable
- (
- CSL_Edma3Handle hModule,
- Int edmaRegion,
- CSL_BitMask32 qrae
- )
- {
- /* Clear the appropriate bits */
- hModule->regs->TPCC_QRAE[edmaRegion] &= ~qrae;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetWaterMark
- *
- * @b Description
- * @n The function gets the Queue Watermark for the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event queue number for which the watermark is retreived.
- waterMark This is populated by the API to the configured water mark
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSTAT_WM
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 waterMark;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Get the Water Mark Queue for event queue 0
- CSL_edma3GetWaterMark(hModule, 0, &waterMark);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetWaterMark
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* waterMark
- );
- static inline void CSL_edma3GetWaterMark
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* waterMark
- )
- {
- /* Extract the watermark from the appropriate event queue. */
- *waterMark = (Uint8)CSL_FEXT(hModule->regs->TPCC_QSTAT[eventQueue], TPCC_TPCC_QSTAT0_WM);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetNumberValidEntries
- *
- * @b Description
- * @n The function gets the Number of valid entries for the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event queue number for which the watermark is retreived.
- numValidEntries This is populated by the API to the number of valid entries
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSTAT_NUMVAL
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 numVal;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Get the Number of valid entries in event queue 0.
- CSL_edma3GetNumberValidEntries(hModule, 0, &numVal);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetNumberValidEntries
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* numValidEntries
- );
- static inline void CSL_edma3GetNumberValidEntries
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* numValidEntries
- )
- {
- /* Extract the number of valid entries from the appropriate event queue. */
- *numValidEntries = (Uint8)CSL_FEXT(hModule->regs->TPCC_QSTAT[eventQueue], TPCC_TPCC_QSTAT0_NUMVAL);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetStartPointer
- *
- * @b Description
- * @n The function gets the Number of valid entries for the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event queue number for which the watermark is retreived.
- startPtr This is populated by the API to the start pointer
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSTAT_STRPTR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 startPtr;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Get the Number of valid entries in event queue 0.
- CSL_edma3GetStartPointer(hModule, 0, &startPtr);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetStartPointer
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* startPtr
- );
- static inline void CSL_edma3GetStartPointer
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8* startPtr
- )
- {
- /* Extract the start pointer from the appropriate event queue. */
- *startPtr = (Uint8)CSL_FEXT(hModule->regs->TPCC_QSTAT[eventQueue], TPCC_TPCC_QSTAT0_STRPTR);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetThresholdExceeded
- *
- * @b Description
- * @n The function gets the threshold exceeded flag for the specific event queue.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event queue number for which the watermark is retreived.
- thresholdExceeded This is populated by the API to the threshold exceeded flag
- for the specific event queue.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSTAT_THRXCD
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Uint8 thresholdExceeded;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Determine if the threshold has been exceeded or not for Queue 1
- CSL_edma3GetThresholdExceeded(hModule, 1, &thresholdExceeded);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetThresholdExceeded
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Bool* thresholdExceeded
- );
- static inline void CSL_edma3GetThresholdExceeded
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Bool* thresholdExceeded
- )
- {
- /* Extract the threshold exceeded from the appropriate event queue. */
- *thresholdExceeded = (Bool)CSL_FEXT(hModule->regs->TPCC_QSTAT[eventQueue], TPCC_TPCC_QSTAT0_THRXCD);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3EventQueueThresholdSet
- *
- * @b Description
- * @n The function configures the queue threshold.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- eventQueue Event queue for which the threshold is configured
- threshold Target threshold value.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QWMTHRA_Q0;TPCC_TPCC_QWMTHRA_Q1;TPCC_TPCC_QWMTHRA_Q2;
- * TPCC_TPCC_QWMTHRA_Q3;
- * @n TPCC_TPCC_QWMTHRB_Q4;TPCC_TPCC_QWMTHRB_Q1;TPCC_TPCC_QWMTHRB_Q2;
- * TPCC_TPCC_QWMTHRB_Q3
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Set the Queue threshold for Event Queue 0 to be 9
- CSL_edma3EventQueueThresholdSet(hModule, 0, 9);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3EventQueueThresholdSet
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 threshold
- );
- static inline void CSL_edma3EventQueueThresholdSet
- (
- CSL_Edma3Handle hModule,
- Uint8 eventQueue,
- Uint8 threshold
- )
- {
- /* Determine which register needs to be configured: QWMTHRA or QWMTHRB */
- if (eventQueue < 4U)
- {
- /* TPCC_QWMTHRA: Set the correct bits with the threshold value. */
- CSL_FINSR(hModule->regs->TPCC_QWMTHRA, (8U * eventQueue + 4U), (8U * eventQueue), (Uint32)threshold);
- }
- else
- {
- /* TPCC_QWMTHRB: Set the correct bits with the threshold value. */
- eventQueue -= 4U;
- CSL_FINSR(hModule->regs->TPCC_QWMTHRB, (8U * eventQueue + 4U), (8U * eventQueue), (Uint32)threshold);
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetActivityStatus
- *
- * @b Description
- * @n Obtains the Channel Controller Activity Status
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- activityStat Activity Status populated by this API.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_CCSTAT_EVTACTV,TPCC_TPCC_CCSTAT_QEVTACTV,TPCC_TPCC_CCSTAT_TRACTV,
- * TPCC_TPCC_CCSTAT_ACTV,TPCC_TPCC_CCSTAT_COMP_ACTV
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_Edma3ActivityStat activityStat;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get the CC activity status.
- CSL_edma3GetActivityStatus(hModule,&activityStat);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetActivityStatus
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3ActivityStat* activityStat
- );
- static inline void CSL_edma3GetActivityStatus
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3ActivityStat* activityStat
- )
- {
- Uint32 value = hModule->regs->TPCC_CCSTAT;
- /* Populate the activity status structure. */
- activityStat->evtActive = (Bool)CSL_FEXT(value, TPCC_TPCC_CCSTAT_EVTACTV);
- activityStat->qevtActive = (Bool)CSL_FEXT(value, TPCC_TPCC_CCSTAT_QEVTACTV);
- activityStat->trActive = (Bool)CSL_FEXT(value, TPCC_TPCC_CCSTAT_TRACTV);
- activityStat->active = (Bool)CSL_FEXT(value, TPCC_TPCC_CCSTAT_ACTV);
- activityStat->outstandingTcc = CSL_FEXT(value, TPCC_TPCC_CCSTAT_COMP_ACTV);
- activityStat->queActive = CSL_FEXTR(value, 23U,16U);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetMemoryFaultError
- *
- * @b Description
- * @n The function gets the Controllers memory fault error and the error
- * attributes.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- memFault The structure is populated by this API.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_MPFAR_FADDR,TPCC_TPCC_MPFSR_FID,
- * TPCC_TPCC_MPFSR_UXE,TPCC_TPCC_MPFSR_UWE,TPCC_TPCC_MPFSR_URE,
- * TPCC_TPCC_MPFSR_SXE,TPCC_TPCC_MPFSR_SWE,TPCC_TPCC_MPFSR_SRE,
- * TPCC_TPCC_MPFSR_SECE
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_Edma3MemFaultStat memFault;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get memory protection fault
- CSL_edma3GetMemoryFaultError(hModule, &memFault);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetMemoryFaultError
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3MemFaultStat* memFault
- );
- static inline void CSL_edma3GetMemoryFaultError
- (
- CSL_Edma3Handle hModule,
- CSL_Edma3MemFaultStat* memFault
- )
- {
- Uint32 value = hModule->regs->TPCC_MPFSR;
- /* Extract the memory fault address. */
- memFault->addr = CSL_FEXT(hModule->regs->TPCC_MPFAR, TPCC_TPCC_MPFAR_FADDR);
- /* Extract the fault ID */
- memFault->fid = CSL_FEXT(value, TPCC_TPCC_MPFSR_FID);
- /* Extract the error access bits. */
- memFault->error = CSL_FEXTR(value, 8U, 0U);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3MemFaultClear
- *
- * @b Description
- * @n The function clears the memory fault.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_MPFCR_MPFCLR=1
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Clear the memory protection fault
- CSL_edma3MemFaultClear(hModule);
- ...
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3MemFaultClear (CSL_Edma3Handle hModule);
- static inline void CSL_edma3MemFaultClear (CSL_Edma3Handle hModule)
- {
- /* Write a 1 to clear the memory fault. */
- hModule->regs->TPCC_MPFCR = CSL_FMK(TPCC_TPCC_MPFCR_MPFCLR, (Uint32)1U);
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetMemoryProtectionAttrib
- *
- * @b Description
- * @n The function gets the memory access/protection attributes of the
- * specific region.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region being queried.
- mppa Memory Access/Protection Attributes populated by this API
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_MPPAG;TPCC_TPCC_MPPA
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 mppa;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get memory protection attributes for the Global Region.
- CSL_edma3GetMemoryProtectionAttrib(hModule, -1, &mppa);
- ...
- // Get memory protection attributes for region 2
- CSL_edma3GetMemoryProtectionAttrib(hModule, 2, &mppa);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetMemoryProtectionAttrib
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* mppa
- );
- static inline void CSL_edma3GetMemoryProtectionAttrib
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* mppa
- )
- {
- /* Determine which region is being queried. */
- if (region < 0)
- {
- /* Get the Global Memory Protection Attributes */
- *mppa = hModule->regs->TPCC_MPPAG;
- }
- else
- {
- /* Get the Memory Protection Attributes for the specific region. */
- *mppa = hModule->regs->TPCC_MPPA[region];
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3SetMemoryProtectionAttrib
- *
- * @b Description
- * @n This API sets the memory protection attributes for the specified region.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region being configured.
- mpa Value to be programmed into the MPPAG/MPPA[0/1/2/../n]
- This is a Bitmask of the protection attributes.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_MPPAG;TPCC_TPCC_MPPA
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Set the memory protection attributes of region 0.
- CSL_edma3SetMemoryProtectionAttrib (hModule, 0, CSL_EDMA3_MEMACCESS_UX |
- CSL_EDMA3_MEMACCESS_UW |
- CSL_EDMA3_MEMACCESS_UR |
- CSL_EDMA3_MEMACCESS_AID2));
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3SetMemoryProtectionAttrib
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 mppa
- );
- static inline void CSL_edma3SetMemoryProtectionAttrib
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 mppa
- )
- {
- /* Determine which region is being configured.*/
- if (region < 0)
- {
- /* Set the Global Memory Protection Attributes */
- hModule->regs->TPCC_MPPAG = mppa;
- }
- else
- {
- /* Set the Memory Protection Attributes for the specific region. */
- hModule->regs->TPCC_MPPA[region] = mppa;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsDMAChannelEventPending
- *
- * @b Description
- * @n The function gets the status of the specified DMA channel i.e. if
- * there is a pending event on the specific channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel for which status is being inquired.
- response Place holder for whether an event is set(TRUE) or not (FALSE)
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None.
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_ER_E0;TPCC_TPCC_ER_E1;TPCC_TPCC_ER_E2;TPCC_TPCC_ER_E3;
- * TPCC_TPCC_ER_E4;TPCC_TPCC_ER_E5;TPCC_TPCC_ER_E6;TPCC_TPCC_ER_E7;
- * TPCC_TPCC_ER_E8;TPCC_TPCC_ER_E9;TPCC_TPCC_ER_E10;TPCC_TPCC_ER_E11;
- * TPCC_TPCC_ER_E12;TPCC_TPCC_ER_E13;TPCC_TPCC_ER_E14;TPCC_TPCC_ER_E15;
- * TPCC_TPCC_ER_E16;TPCC_TPCC_ER_E17;TPCC_TPCC_ER_E18;TPCC_TPCC_ER_E19;
- * TPCC_TPCC_ER_E20;TPCC_TPCC_ER_E21;TPCC_TPCC_ER_E22;TPCC_TPCC_ER_E23;
- * TPCC_TPCC_ER_E24;TPCC_TPCC_ER_E25;TPCC_TPCC_ER_E26;TPCC_TPCC_ER_E27;
- * TPCC_TPCC_ER_E28;TPCC_TPCC_ER_E29;TPCC_TPCC_ER_E30;TPCC_TPCC_ER_E31;
- * @n TPCC_TPCC_ERH_E32;TPCC_TPCC_ERH_E33;TPCC_TPCC_ERH_E34;TPCC_TPCC_ERH_E35;
- * TPCC_TPCC_ERH_E36;TPCC_TPCC_ERH_E37;TPCC_TPCC_ERH_E38;TPCC_TPCC_ERH_E39;
- * TPCC_TPCC_ERH_E40;TPCC_TPCC_ERH_E41;TPCC_TPCC_ERH_E42;TPCC_TPCC_ERH_E43;
- * TPCC_TPCC_ERH_E44;TPCC_TPCC_ERH_E45;TPCC_TPCC_ERH_E46;TPCC_TPCC_ERH_E47;
- * TPCC_TPCC_ERH_E48;TPCC_TPCC_ERH_E49;TPCC_TPCC_ERH_E50;TPCC_TPCC_ERH_E51;
- * TPCC_TPCC_ERH_E52;TPCC_TPCC_ERH_E53;TPCC_TPCC_ERH_E54;TPCC_TPCC_ERH_E55;
- * TPCC_TPCC_ERH_E56;TPCC_TPCC_ERH_E57;TPCC_TPCC_ERH_E58;TPCC_TPCC_ERH_E59;
- * TPCC_TPCC_ERH_E60;TPCC_TPCC_ERH_E61;TPCC_TPCC_ERH_E62;TPCC_TPCC_ERH_E63;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool dmaStatus;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Determine if there is an event pending on DMA Channel 0.
- CSL_edma3IsDMAChannelEventPending(hModule, 0, &dmaStatus);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsDMAChannelEventPending
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsDMAChannelEventPending
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- )
- {
- /* Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* ER: Read the specific DMA Channel bits */
- if (CSL_FEXTR(hModule->regs->TPCC_ER, (Uint32)dmaChannel, (Uint32)dmaChannel))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- else
- {
- /* ERH: Read the specific DMA Channel bits */
- if (CSL_FEXTR(hModule->regs->TPCC_ERH, ((Uint32)(dmaChannel) - 32U), ((Uint32)(dmaChannel) - 32U)))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearDMAChannelEvent
- *
- * @b Description
- * @n This API clears the event for the specific DMA channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- dmaChannel DMA Channel for which the event is cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_ECR_E0=1;TPCC_TPCC_ECR_E1=1;TPCC_TPCC_ECR_E2=1;TPCC_TPCC_ECR_E3=1;
- * TPCC_TPCC_ECR_E4=1;TPCC_TPCC_ECR_E5=1;TPCC_TPCC_ECR_E6=1;TPCC_TPCC_ECR_E7=1;
- * TPCC_TPCC_ECR_E8=1;TPCC_TPCC_ECR_E9=1;TPCC_TPCC_ECR_E10=1;TPCC_TPCC_ECR_E11=1;
- * TPCC_TPCC_ECR_E12=1;TPCC_TPCC_ECR_E13=1;TPCC_TPCC_ECR_E14=1;TPCC_TPCC_ECR_E15=1;
- * TPCC_TPCC_ECR_E16=1;TPCC_TPCC_ECR_E17=1;TPCC_TPCC_ECR_E18=1;TPCC_TPCC_ECR_E19=1;
- * TPCC_TPCC_ECR_E20=1;TPCC_TPCC_ECR_E21=1;TPCC_TPCC_ECR_E22=1;TPCC_TPCC_ECR_E23=1;
- * TPCC_TPCC_ECR_E24=1;TPCC_TPCC_ECR_E25=1;TPCC_TPCC_ECR_E26=1;TPCC_TPCC_ECR_E27=1;
- * TPCC_TPCC_ECR_E28=1;TPCC_TPCC_ECR_E29=1;TPCC_TPCC_ECR_E30=1;TPCC_TPCC_ECR_E31=1;
- * @n TPCC_TPCC_ECRH_E32=1;TPCC_TPCC_ECRH_E33=1;TPCC_TPCC_ECRH_E34=1;TPCC_TPCC_ECRH_E35=1;
- * TPCC_TPCC_ECRH_E36=1;TPCC_TPCC_ECRH_E37=1;TPCC_TPCC_ECRH_E38=1;TPCC_TPCC_ECRH_E39=1;
- * TPCC_TPCC_ECRH_E40=1;TPCC_TPCC_ECRH_E41=1;TPCC_TPCC_ECRH_E42=1;TPCC_TPCC_ECRH_E43=1;
- * TPCC_TPCC_ECRH_E44=1;TPCC_TPCC_ECRH_E45=1;TPCC_TPCC_ECRH_E46=1;TPCC_TPCC_ECRH_E47=1;
- * TPCC_TPCC_ECRH_E48=1;TPCC_TPCC_ECRH_E49=1;TPCC_TPCC_ECRH_E50=1;TPCC_TPCC_ECRH_E51=1;
- * TPCC_TPCC_ECRH_E52=1;TPCC_TPCC_ECRH_E53=1;TPCC_TPCC_ECRH_E54=1;TPCC_TPCC_ECRH_E55=1;
- * TPCC_TPCC_ECRH_E56=1;TPCC_TPCC_ECRH_E57=1;TPCC_TPCC_ECRH_E58=1;TPCC_TPCC_ECRH_E59=1;
- * TPCC_TPCC_ECRH_E60=1;TPCC_TPCC_ECRH_E61=1;TPCC_TPCC_ECRH_E62=1;TPCC_TPCC_ECRH_E63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool dmaStatus;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get DMA Channel 0 Status
- CSL_edma3GetDMAChannelEvent(hModule, 0, &dmaStatus);
- if (dmaStatus == TRUE)
- {
- // DMA Channel 0 is active...
- ...
- // Clear DMA Channel 0.
- CSL_edma3ClearDMAChannelEvent (hModule, CSL_EDMA3_REGION_GLOBAL, 0);
- }
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearDMAChannelEvent
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3ClearDMAChannelEvent
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- )
- {
- /* Determine the region for which the event is to be cleared. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* ECR: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->TPCC_ECR, (uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* ECRH: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->TPCC_ECRH, (uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- else
- {
- /* Shadow: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* ECR: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->SHADOW[region].TPCC_ECR, (uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* ECRH: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->SHADOW[region].TPCC_ECRH, (uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3SetDMAChannelEvent
- *
- * @b Description
- * @n This API sets the event for the specific DMA channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- dmaChannel DMA Channel for which the event is to be set
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_ESR_E0=1;TPCC_TPCC_ESR_E1=1;TPCC_TPCC_ESR_E2=1;TPCC_TPCC_ESR_E3=1;
- * TPCC_TPCC_ESR_E4=1;TPCC_TPCC_ESR_E5=1;TPCC_TPCC_ESR_E6=1;TPCC_TPCC_ESR_E7=1;
- * TPCC_TPCC_ESR_E8=1;TPCC_TPCC_ESR_E9=1;TPCC_TPCC_ESR_E10=1;TPCC_TPCC_ESR_E11=1;
- * TPCC_TPCC_ESR_E12=1;TPCC_TPCC_ESR_E13=1;TPCC_TPCC_ESR_E14=1;TPCC_TPCC_ESR_E15=1;
- * TPCC_TPCC_ESR_E16=1;TPCC_TPCC_ESR_E17=1;TPCC_TPCC_ESR_E18=1;TPCC_TPCC_ESR_E19=1;
- * TPCC_TPCC_ESR_E20=1;TPCC_TPCC_ESR_E21=1;TPCC_TPCC_ESR_E22=1;TPCC_TPCC_ESR_E23=1;
- * TPCC_TPCC_ESR_E24=1;TPCC_TPCC_ESR_E25=1;TPCC_TPCC_ESR_E26=1;TPCC_TPCC_ESR_E27=1;
- * TPCC_TPCC_ESR_E28=1;TPCC_TPCC_ESR_E29=1;TPCC_TPCC_ESR_E30=1;TPCC_TPCC_ESR_E31=1;
- * @n TPCC_TPCC_ESRH_E32=1;TPCC_TPCC_ESRH_E33=1;TPCC_TPCC_ESRH_E34=1;TPCC_TPCC_ESRH_E35=1;
- * TPCC_TPCC_ESRH_E36=1;TPCC_TPCC_ESRH_E37=1;TPCC_TPCC_ESRH_E38=1;TPCC_TPCC_ESRH_E39=1;
- * TPCC_TPCC_ESRH_E40=1;TPCC_TPCC_ESRH_E41=1;TPCC_TPCC_ESRH_E42=1;TPCC_TPCC_ESRH_E43=1;
- * TPCC_TPCC_ESRH_E44=1;TPCC_TPCC_ESRH_E45=1;TPCC_TPCC_ESRH_E46=1;TPCC_TPCC_ESRH_E47=1;
- * TPCC_TPCC_ESRH_E48=1;TPCC_TPCC_ESRH_E49=1;TPCC_TPCC_ESRH_E50=1;TPCC_TPCC_ESRH_E51=1;
- * TPCC_TPCC_ESRH_E52=1;TPCC_TPCC_ESRH_E53=1;TPCC_TPCC_ESRH_E54=1;TPCC_TPCC_ESRH_E55=1;
- * TPCC_TPCC_ESRH_E56=1;TPCC_TPCC_ESRH_E57=1;TPCC_TPCC_ESRH_E58=1;TPCC_TPCC_ESRH_E59=1;
- * TPCC_TPCC_ESRH_E60=1;TPCC_TPCC_ESRH_E61=1;TPCC_TPCC_ESRH_E62=1;TPCC_TPCC_ESRH_E63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Set the DMA Channel 0 Event for the Global Region.
- CSL_edma3SetDMAChannelEvent(hModule, CSL_EDMA3_REGION_GLOBAL, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3SetDMAChannelEvent
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3SetDMAChannelEvent
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- )
- {
- /* Determine the region for which the event is to be set. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* ESR: Write to the specific DMA Channel bits */
- hModule->regs->TPCC_ESR = CSL_FMKR((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* ESRH: Write to the specific DMA Channel bits */
- hModule->regs->TPCC_ESRH = CSL_FMKR((uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- else
- {
- /* Shadow: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* ESR: Write to the specific DMA Channel bits */
- hModule->regs->SHADOW[region].TPCC_ESR = CSL_FMKR((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* ESRH: Write to the specific DMA Channel bits */
- hModule->regs->SHADOW[region].TPCC_ESRH = CSL_FMKR((uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3DMAChannelDisable
- *
- * @b Description
- * @n This API disables the specified DMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- dmaChannel DMA Channel to be disabled.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_EECR_E0=1;TPCC_TPCC_EECR_E1=1;TPCC_TPCC_EECR_E2=1;
- * TPCC_TPCC_EECR_E3=1;TPCC_TPCC_EECR_E4=1;TPCC_TPCC_EECR_E5=1;
- * TPCC_TPCC_EECR_E6=1;TPCC_TPCC_EECR_E7=1;TPCC_TPCC_EECR_E8=1;
- * TPCC_TPCC_EECR_E9=1;TPCC_TPCC_EECR_E10=1;TPCC_TPCC_EECR_E11=1;
- * TPCC_TPCC_EECR_E12=1;TPCC_TPCC_EECR_E13=1;TPCC_TPCC_EECR_E14=1;
- * TPCC_TPCC_EECR_E15=1;TPCC_TPCC_EECR_E16=1;TPCC_TPCC_EECR_E17=1;
- * TPCC_TPCC_EECR_E18=1;TPCC_TPCC_EECR_E19=1;TPCC_TPCC_EECR_E20=1;
- * TPCC_TPCC_EECR_E21=1;TPCC_TPCC_EECR_E22=1;TPCC_TPCC_EECR_E23=1;
- * TPCC_TPCC_EECR_E24=1;TPCC_TPCC_EECR_E25=1;TPCC_TPCC_EECR_E26=1;
- * TPCC_TPCC_EECR_E27=1;TPCC_TPCC_EECR_E28=1;TPCC_TPCC_EECR_E29=1;
- * TPCC_TPCC_EECR_E30=1;TPCC_TPCC_EECR_E31=1;
- * @n TPCC_TPCC_EECRH_E32=1;TPCC_TPCC_EECRH_E33=1;TPCC_TPCC_EECRH_E34=1;
- * TPCC_TPCC_EECRH_E35=1;TPCC_TPCC_EECRH_E36=1;TPCC_TPCC_EECRH_E37=1;
- * TPCC_TPCC_EECRH_E38=1;TPCC_TPCC_EECRH_E39=1;TPCC_TPCC_EECRH_E40=1;
- * TPCC_TPCC_EECRH_E41=1;TPCC_TPCC_EECRH_E42=1;TPCC_TPCC_EECRH_E43=1;
- * TPCC_TPCC_EECRH_E44=1;TPCC_TPCC_EECRH_E45=1;TPCC_TPCC_EECRH_E46=1;
- * TPCC_TPCC_EECRH_E47=1;TPCC_TPCC_EECRH_E48=1;TPCC_TPCC_EECRH_E49=1;
- * TPCC_TPCC_EECRH_E50=1;TPCC_TPCC_EECRH_E51=1;TPCC_TPCC_EECRH_E52=1;
- * TPCC_TPCC_EECRH_E53=1;TPCC_TPCC_EECRH_E54=1;TPCC_TPCC_EECRH_E55=1;
- * TPCC_TPCC_EECRH_E56=1;TPCC_TPCC_EECRH_E57=1;TPCC_TPCC_EECRH_E58=1;
- * TPCC_TPCC_EECRH_E59=1;TPCC_TPCC_EECRH_E60=1;TPCC_TPCC_EECRH_E61=1;
- * TPCC_TPCC_EECRH_E62=1;TPCC_TPCC_EECRH_E63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Disables DMA Channel 0
- CSL_edma3DMAChannelDisable(hModule, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3DMAChannelDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3DMAChannelDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- )
- {
- /* Determine the region for which the DMA channel is to be disabled. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EECR: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->TPCC_EECR, (uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* EECRH: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->TPCC_EECRH, (uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- else
- {
- /* Shadow: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EECR: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->SHADOW[region].TPCC_EECR, (uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* EECRH: Write to the specific DMA Channel bits */
- CSL_FINSR(hModule->regs->SHADOW[region].TPCC_EECRH, (uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3DMAChannelEnable
- *
- * @b Description
- * @n This API enables the specified DMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- dmaChannel DMA Channel to be enabled.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_EESR_E0=1;TPCC_TPCC_EESR_E1=1;TPCC_TPCC_EESR_E2=1;
- * TPCC_TPCC_EESR_E3=1;TPCC_TPCC_EESR_E4=1;TPCC_TPCC_EESR_E5=1;
- * TPCC_TPCC_EESR_E6=1;TPCC_TPCC_EESR_E7=1;TPCC_TPCC_EESR_E8=1;
- * TPCC_TPCC_EESR_E9=1;TPCC_TPCC_EESR_E10=1;TPCC_TPCC_EESR_E11=1;
- * TPCC_TPCC_EESR_E12=1;TPCC_TPCC_EESR_E13=1;TPCC_TPCC_EESR_E14=1;
- * TPCC_TPCC_EESR_E15=1;TPCC_TPCC_EESR_E16=1;TPCC_TPCC_EESR_E17=1;
- * TPCC_TPCC_EESR_E18=1;TPCC_TPCC_EESR_E19=1;TPCC_TPCC_EESR_E20=1;
- * TPCC_TPCC_EESR_E21=1;TPCC_TPCC_EESR_E22=1;TPCC_TPCC_EESR_E23=1;
- * TPCC_TPCC_EESR_E24=1;TPCC_TPCC_EESR_E25=1;TPCC_TPCC_EESR_E26=1;
- * TPCC_TPCC_EESR_E27=1;TPCC_TPCC_EESR_E28=1;TPCC_TPCC_EESR_E29=1;
- * TPCC_TPCC_EESR_E30=1;TPCC_TPCC_EESR_E31=1;
- * @n TPCC_TPCC_EESRH_E32=1;TPCC_TPCC_EESRH_E33=1;TPCC_TPCC_EESRH_E34=1;
- * TPCC_TPCC_EESRH_E35=1;TPCC_TPCC_EESRH_E36=1;TPCC_TPCC_EESRH_E37=1;
- * TPCC_TPCC_EESRH_E38=1;TPCC_TPCC_EESRH_E39=1;TPCC_TPCC_EESRH_E40=1;
- * TPCC_TPCC_EESRH_E41=1;TPCC_TPCC_EESRH_E42=1;TPCC_TPCC_EESRH_E43=1;
- * TPCC_TPCC_EESRH_E44=1;TPCC_TPCC_EESRH_E45=1;TPCC_TPCC_EESRH_E46=1;
- * TPCC_TPCC_EESRH_E47=1;TPCC_TPCC_EESRH_E48=1;TPCC_TPCC_EESRH_E49=1;
- * TPCC_TPCC_EESRH_E50=1;TPCC_TPCC_EESRH_E51=1;TPCC_TPCC_EESRH_E52=1;
- * TPCC_TPCC_EESRH_E53=1;TPCC_TPCC_EESRH_E54=1;TPCC_TPCC_EESRH_E55=1;
- * TPCC_TPCC_EESRH_E56=1;TPCC_TPCC_EESRH_E57=1;TPCC_TPCC_EESRH_E58=1;
- * TPCC_TPCC_EESRH_E59=1;TPCC_TPCC_EESRH_E60=1;TPCC_TPCC_EESRH_E61=1;
- * TPCC_TPCC_EESRH_E62=1;TPCC_TPCC_EESRH_E63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Enables DMA Channel 0 for the global region.
- CSL_edma3DMAChannelEnable(hModule, CSL_EDMA3_REGION_GLOBAL, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3DMAChannelEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3DMAChannelEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 dmaChannel
- )
- {
- /* Determine the region for which the DMA channel is to be enabled. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EESR: Write to the specific DMA Channel bits */
- hModule->regs->TPCC_EESR = CSL_FMKR((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* EESRH: Write to the specific DMA Channel bits */
- hModule->regs->TPCC_EESRH = CSL_FMKR((uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- else
- {
- /* Shadow: Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EESR: Write to the specific DMA Channel bits */
- hModule->regs->SHADOW[region].TPCC_EESR = CSL_FMKR((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* EESRH: Write to the specific DMA Channel bits */
- hModule->regs->SHADOW[region].TPCC_EESRH = CSL_FMKR((uint32_t)dmaChannel - (uint32_t)32U, (uint32_t)dmaChannel - (uint32_t)32U, ((uint32_t)1U));
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetDMASecondaryEvents
- *
- * @b Description
- * @n This API gets the DMA secondary events
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- secEventLo Lower order 32 bits of secondary events populated by the API
- secEventHi Higher order 32 bits of secondary events populated by the API
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_SER,TPCC_TPCC_SERH
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 secEventLo;
- CSL_BitMask32 secEventHi;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- // Get the DMA Secondary Events.
- CSL_edma3GetDMASecondaryEvents(hModule, &secEventLo, &secEventHi);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32* secEventLo,
- CSL_BitMask32* secEventHi
- );
- static inline void CSL_edma3GetDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32* secEventLo,
- CSL_BitMask32* secEventHi
- )
- {
- /* Read the Secondary Events */
- *secEventLo = hModule->regs->TPCC_SER;
- *secEventHi = hModule->regs->TPCC_SERH;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsDMAChannelSecondaryEventSet
- *
- * @b Description
- * @n This API is used to determine if the secondary Event for a specific DMA
- * channel is set or not?
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- dmaChannel DMA Channel for which secondary Events are being checked
- response Status of the check populated by the API (TRUE if event
- is missed else FALSE)
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_SER_SER0;TPCC_TPCC_SER_SER1;TPCC_TPCC_SER_SER2;
- * TPCC_TPCC_SER_SER3;TPCC_TPCC_SER_SER4;TPCC_TPCC_SER_SER5;
- * TPCC_TPCC_SER_SER6;TPCC_TPCC_SER_SER7;TPCC_TPCC_SER_SER8;
- * TPCC_TPCC_SER_SER9;TPCC_TPCC_SER_SER10;TPCC_TPCC_SER_SER11;
- * TPCC_TPCC_SER_SER12;TPCC_TPCC_SER_SER13;TPCC_TPCC_SER_SER14;
- * TPCC_TPCC_SER_SER15;TPCC_TPCC_SER_SER16;TPCC_TPCC_SER_SER17;
- * TPCC_TPCC_SER_SER18;TPCC_TPCC_SER_SER19;TPCC_TPCC_SER_SER20;
- * TPCC_TPCC_SER_SER21;TPCC_TPCC_SER_SER22;TPCC_TPCC_SER_SER23;
- * TPCC_TPCC_SER_SER24;TPCC_TPCC_SER_SER25;TPCC_TPCC_SER_SER26;
- * TPCC_TPCC_SER_SER27;TPCC_TPCC_SER_SER28;TPCC_TPCC_SER_SER29;
- * TPCC_TPCC_SER_SER30;TPCC_TPCC_SER_SER31;
- * @n TPCC_TPCC_SERH_SER32;TPCC_TPCC_SERH_SER33;TPCC_TPCC_SERH_SER34;
- * TPCC_TPCC_SERH_SER35;TPCC_TPCC_SERH_SER36;TPCC_TPCC_SERH_SER37;
- * TPCC_TPCC_SERH_SER38;TPCC_TPCC_SERH_SER39;TPCC_TPCC_SERH_SER40;
- * TPCC_TPCC_SERH_SER41;TPCC_TPCC_SERH_SER42;TPCC_TPCC_SERH_SER43;
- * TPCC_TPCC_SERH_SER44;TPCC_TPCC_SERH_SER45;TPCC_TPCC_SERH_SER46;
- * TPCC_TPCC_SERH_SER47;TPCC_TPCC_SERH_SER48;TPCC_TPCC_SERH_SER49;
- * TPCC_TPCC_SERH_SER50;TPCC_TPCC_SERH_SER51;TPCC_TPCC_SERH_SER52;
- * TPCC_TPCC_SERH_SER53;TPCC_TPCC_SERH_SER54;TPCC_TPCC_SERH_SER55;
- * TPCC_TPCC_SERH_SER56;TPCC_TPCC_SERH_SER57;TPCC_TPCC_SERH_SER58;
- * TPCC_TPCC_SERH_SER59;TPCC_TPCC_SERH_SER60;TPCC_TPCC_SERH_SER61;
- * TPCC_TPCC_SERH_SER62;TPCC_TPCC_SERH_SER63;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool response;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- // Check if the DMA Channel 1 Secondary Event is set or not?
- CSL_edma3IsDMAChannelSecondaryEventSet(hModule, 1, &response);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsDMAChannelSecondaryEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsDMAChannelSecondaryEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel,
- Bool* response
- )
- {
- /* Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* EMR: Extract the appropriate bit. */
- if (CSL_FEXTR(hModule->regs->TPCC_SER, (Uint32)dmaChannel, (Uint32)dmaChannel))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- else
- {
- /* EMRH: Extract the appropriate bit. */
- if (CSL_FEXTR(hModule->regs->TPCC_SERH, ((Uint32)(dmaChannel)-32U), ((Uint32)(dmaChannel)-32U)))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearDMASecondaryEvents
- *
- * @b Description
- * @n This API clears the DMA secondary events
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- secEventLo Lower order 32 bits of secondary events to be cleared
- secEventHi Higher order 32 bits of secondary events to be cleared
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_SECR,TPCC_TPCC_SECRH
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 secEventLo;
- CSL_BitMask32 secEventHi;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- // Get the DMA Secondary Events.
- CSL_edma3GetDMASecondaryEvents(hModule, &secEventLo, &secEventHi);
- ...
- // Clear the DMA Secondary Events
- CSL_edma3ClearDMASecondaryEvents(hModule, secEventLo, secEventHi);
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32 secEventLo,
- CSL_BitMask32 secEventHi
- );
- static inline void CSL_edma3ClearDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- CSL_BitMask32 secEventLo,
- CSL_BitMask32 secEventHi
- )
- {
- /* Clear the Secondary Events */
- hModule->regs->TPCC_SECR = secEventLo;
- hModule->regs->TPCC_SECRH = secEventHi;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearDMAChannelSecondaryEvents
- *
- * @b Description
- * @n This API clears the DMA Secondary Event for a specific DMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel DMA Channel for which the secondary event is to be cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_SECR_SECR0=1;TPCC_TPCC_SECR_SECR1=1;TPCC_TPCC_SECR_SECR2=1;
- * TPCC_TPCC_SECR_SECR3=1;TPCC_TPCC_SECR_SECR4=1;TPCC_TPCC_SECR_SECR5=1;
- * TPCC_TPCC_SECR_SECR6=1;TPCC_TPCC_SECR_SECR7=1;TPCC_TPCC_SECR_SECR8=1;
- * TPCC_TPCC_SECR_SECR9=1;TPCC_TPCC_SECR_SECR10=1;TPCC_TPCC_SECR_SECR11=1;
- * TPCC_TPCC_SECR_SECR12=1;TPCC_TPCC_SECR_SECR13=1;TPCC_TPCC_SECR_SECR14=1;
- * TPCC_TPCC_SECR_SECR15=1;TPCC_TPCC_SECR_SECR16=1;TPCC_TPCC_SECR_SECR17=1;
- * TPCC_TPCC_SECR_SECR18=1;TPCC_TPCC_SECR_SECR19=1;TPCC_TPCC_SECR_SECR20=1;
- * TPCC_TPCC_SECR_SECR21=1;TPCC_TPCC_SECR_SECR22=1;TPCC_TPCC_SECR_SECR23=1;
- * TPCC_TPCC_SECR_SECR24=1;TPCC_TPCC_SECR_SECR25=1;TPCC_TPCC_SECR_SECR26=1;
- * TPCC_TPCC_SECR_SECR27=1;TPCC_TPCC_SECR_SECR28=1;TPCC_TPCC_SECR_SECR29=1;
- * TPCC_TPCC_SECR_SECR30=1;TPCC_TPCC_SECR_SECR31=1;
- * @n TPCC_TPCC_SECRH_SECR32=1;TPCC_TPCC_SECRH_SECR33=1;TPCC_TPCC_SECRH_SECR34=1;
- * TPCC_TPCC_SECRH_SECR35=1;TPCC_TPCC_SECRH_SECR36=1;TPCC_TPCC_SECRH_SECR37=1;
- * TPCC_TPCC_SECRH_SECR38=1;TPCC_TPCC_SECRH_SECR39=1;TPCC_TPCC_SECRH_SECR40=1;
- * TPCC_TPCC_SECRH_SECR41=1;TPCC_TPCC_SECRH_SECR42=1;TPCC_TPCC_SECRH_SECR43=1;
- * TPCC_TPCC_SECRH_SECR44=1;TPCC_TPCC_SECRH_SECR45=1;TPCC_TPCC_SECRH_SECR46=1;
- * TPCC_TPCC_SECRH_SECR47=1;TPCC_TPCC_SECRH_SECR48=1;TPCC_TPCC_SECRH_SECR49=1;
- * TPCC_TPCC_SECRH_SECR50=1;TPCC_TPCC_SECRH_SECR51=1;TPCC_TPCC_SECRH_SECR52=1;
- * TPCC_TPCC_SECRH_SECR53=1;TPCC_TPCC_SECRH_SECR54=1;TPCC_TPCC_SECRH_SECR55=1;
- * TPCC_TPCC_SECRH_SECR56=1;TPCC_TPCC_SECRH_SECR57=1;TPCC_TPCC_SECRH_SECR58=1;
- * TPCC_TPCC_SECRH_SECR59=1;TPCC_TPCC_SECRH_SECR60=1;TPCC_TPCC_SECRH_SECR61=1;
- * TPCC_TPCC_SECRH_SECR62=1;TPCC_TPCC_SECRH_SECR63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- Uint32 qdmaSecEvent;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Clear the DMA Secondary Event for DMA channel 1
- CSL_edma3ClearDMAChannelSecondaryEvents(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearDMAChannelSecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- );
- static inline void CSL_edma3ClearDMAChannelSecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint8 dmaChannel
- )
- {
- /* Determine which register needs to be looked into. */
- if (dmaChannel < 32U)
- {
- /* SECR: Write to the appropriate channel. */
- hModule->regs->TPCC_SECR = CSL_FMKR ((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* SECRH: Write to the appropriate channel. */
- dmaChannel = dmaChannel - 32U;
- hModule->regs->TPCC_SECRH = CSL_FMKR ((uint32_t)dmaChannel, (uint32_t)dmaChannel, ((uint32_t)1U));
- }
- }
- /** ============================================================================
- * @n@b CSL_edma3InterruptLoDisable
- *
- * @b Description
- * @n The API disables the specified low interrupt Number.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- intrLo Interrupt 0-31 (BitMask32) to be disabled
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_IECR_IECR0=1;TPCC_TPCC_IECR_IECR1=1;TPCC_TPCC_IECR_IECR2=1;
- * TPCC_TPCC_IECR_IECR3=1;TPCC_TPCC_IECR_IECR4=1;TPCC_TPCC_IECR_IECR5=1;
- * TPCC_TPCC_IECR_IECR6=1;TPCC_TPCC_IECR_IECR7=1;TPCC_TPCC_IECR_IECR8=1;
- * TPCC_TPCC_IECR_IECR9=1;TPCC_TPCC_IECR_IECR10=1;TPCC_TPCC_IECR_IECR11=1;
- * TPCC_TPCC_IECR_IECR12=1;TPCC_TPCC_IECR_IECR13=1;TPCC_TPCC_IECR_IECR14=1;
- * TPCC_TPCC_IECR_IECR15=1;TPCC_TPCC_IECR_IECR16=1;TPCC_TPCC_IECR_IECR17=1;
- * TPCC_TPCC_IECR_IECR18=1;TPCC_TPCC_IECR_IECR19=1;TPCC_TPCC_IECR_IECR20=1;
- * TPCC_TPCC_IECR_IECR21=1;TPCC_TPCC_IECR_IECR22=1;TPCC_TPCC_IECR_IECR23=1;
- * TPCC_TPCC_IECR_IECR24=1;TPCC_TPCC_IECR_IECR25=1;TPCC_TPCC_IECR_IECR26=1;
- * TPCC_TPCC_IECR_IECR27=1;TPCC_TPCC_IECR_IECR28=1;TPCC_TPCC_IECR_IECR29=1;
- * TPCC_TPCC_IECR_IECR30=1;TPCC_TPCC_IECR_IECR31=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Interrupts 5-7 disabled for Global Region.
- CSL_edma3InterruptLoDisable(hModule, CSL_EDMA3_REGION_GLOBAL, 0x000000E0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3InterruptLoDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- );
- static inline void CSL_edma3InterruptLoDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- )
- {
- /* Disable the interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_IECR |= intrLo;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_IECR |= intrLo;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3InterruptHiDisable
- *
- * @b Description
- * @n The API disables the specified high interrupt Number.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- intrHi Interrupt 32-63 (BitMask32) to be disabled
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_IECRH_IECR32=1;TPCC_TPCC_IECRH_IECR33=1;TPCC_TPCC_IECRH_IECR34=1;
- * TPCC_TPCC_IECRH_IECR35=1;TPCC_TPCC_IECRH_IECR36=1;TPCC_TPCC_IECRH_IECR37=1;
- * TPCC_TPCC_IECRH_IECR38=1;TPCC_TPCC_IECRH_IECR39=1;TPCC_TPCC_IECRH_IECR40=1;
- * TPCC_TPCC_IECRH_IECR41=1;TPCC_TPCC_IECRH_IECR42=1;TPCC_TPCC_IECRH_IECR43=1;
- * TPCC_TPCC_IECRH_IECR44=1;TPCC_TPCC_IECRH_IECR45=1;TPCC_TPCC_IECRH_IECR46=1;
- * TPCC_TPCC_IECRH_IECR47=1;TPCC_TPCC_IECRH_IECR48=1;TPCC_TPCC_IECRH_IECR49=1;
- * TPCC_TPCC_IECRH_IECR50=1;TPCC_TPCC_IECRH_IECR51=1;TPCC_TPCC_IECRH_IECR52=1;
- * TPCC_TPCC_IECRH_IECR53=1;TPCC_TPCC_IECRH_IECR54=1;TPCC_TPCC_IECRH_IECR55=1;
- * TPCC_TPCC_IECRH_IECR56=1;TPCC_TPCC_IECRH_IECR57=1;TPCC_TPCC_IECRH_IECR58=1;
- * TPCC_TPCC_IECRH_IECR59=1;TPCC_TPCC_IECRH_IECR60=1;TPCC_TPCC_IECRH_IECR61=1;
- * TPCC_TPCC_IECRH_IECR62=1;TPCC_TPCC_IECRH_IECR63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Interrupts 32 disabled for Global Region.
- CSL_edma3InterruptHiDisable(hModule, CSL_EDMA3_REGION_GLOBAL, 0x1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3InterruptHiDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- );
- static inline void CSL_edma3InterruptHiDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- )
- {
- /* Disable the interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_IECRH |= intrHi;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_IECRH |= intrHi;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3InterruptLoEnable
- *
- * @b Description
- * @n The API enables the specific lower interrupts
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- intrLo Interrupt 0-31 (BitMask32) to be enabled
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_IESR_IESR0=1;TPCC_TPCC_IESR_IESR1=1;TPCC_TPCC_IESR_IESR2=1;
- * TPCC_TPCC_IESR_IESR3=1;TPCC_TPCC_IESR_IESR4=1;TPCC_TPCC_IESR_IESR5=1;
- * TPCC_TPCC_IESR_IESR6=1;TPCC_TPCC_IESR_IESR7=1;TPCC_TPCC_IESR_IESR8=1;
- * TPCC_TPCC_IESR_IESR9=1;TPCC_TPCC_IESR_IESR10=1;TPCC_TPCC_IESR_IESR11=1;
- * TPCC_TPCC_IESR_IESR12=1;TPCC_TPCC_IESR_IESR13=1;TPCC_TPCC_IESR_IESR14=1;
- * TPCC_TPCC_IESR_IESR15=1;TPCC_TPCC_IESR_IESR16=1;TPCC_TPCC_IESR_IESR17=1;
- * TPCC_TPCC_IESR_IESR18=1;TPCC_TPCC_IESR_IESR19=1;TPCC_TPCC_IESR_IESR20=1;
- * TPCC_TPCC_IESR_IESR21=1;TPCC_TPCC_IESR_IESR22=1;TPCC_TPCC_IESR_IESR23=1;
- * TPCC_TPCC_IESR_IESR24=1;TPCC_TPCC_IESR_IESR25=1;TPCC_TPCC_IESR_IESR26=1;
- * TPCC_TPCC_IESR_IESR27=1;TPCC_TPCC_IESR_IESR28=1;TPCC_TPCC_IESR_IESR29=1;
- * TPCC_TPCC_IESR_IESR30=1;TPCC_TPCC_IESR_IESR31=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Interrupts 5-7 enabled for the global region.
- CSL_edma3InterruptLoEnable(hModule,CSL_EDMA3_REGION_GLOBAL, 0x000000E0);
- ...
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3InterruptLoEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- );
- static inline void CSL_edma3InterruptLoEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- )
- {
- /* Enable the interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_IESR |= intrLo;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_IESR |= intrLo;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3InterruptHiEnable
- *
- * @b Description
- * @n The API enables the specific High interrupt.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadow or Global)
- intrHi Interrupt 32-63 (BitMask32) to be enabled
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_IESRH_IESR32=1;TPCC_TPCC_IESRH_IESR33=1;TPCC_TPCC_IESRH_IESR34=1;
- * TPCC_TPCC_IESRH_IESR35=1;TPCC_TPCC_IESRH_IESR36=1;TPCC_TPCC_IESRH_IESR37=1;
- * TPCC_TPCC_IESRH_IESR38=1;TPCC_TPCC_IESRH_IESR39=1;TPCC_TPCC_IESRH_IESR40=1;
- * TPCC_TPCC_IESRH_IESR41=1;TPCC_TPCC_IESRH_IESR42=1;TPCC_TPCC_IESRH_IESR43=1;
- * TPCC_TPCC_IESRH_IESR44=1;TPCC_TPCC_IESRH_IESR45=1;TPCC_TPCC_IESRH_IESR46=1;
- * TPCC_TPCC_IESRH_IESR47=1;TPCC_TPCC_IESRH_IESR48=1;TPCC_TPCC_IESRH_IESR49=1;
- * TPCC_TPCC_IESRH_IESR50=1;TPCC_TPCC_IESRH_IESR51=1;TPCC_TPCC_IESRH_IESR52=1;
- * TPCC_TPCC_IESRH_IESR53=1;TPCC_TPCC_IESRH_IESR54=1;TPCC_TPCC_IESRH_IESR55=1;
- * TPCC_TPCC_IESRH_IESR56=1;TPCC_TPCC_IESRH_IESR57=1;TPCC_TPCC_IESRH_IESR58=1;
- * TPCC_TPCC_IESRH_IESR59=1;TPCC_TPCC_IESRH_IESR60=1;TPCC_TPCC_IESRH_IESR61=1;
- * TPCC_TPCC_IESRH_IESR62=1;TPCC_TPCC_IESRH_IESR63=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Interrupts 32 enabled for the global region.
- CSL_edma3InterruptHiEnable(hModule,CSL_EDMA3_REGION_GLOBAL, 0x1);
- ...
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3InterruptHiEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- );
- static inline void CSL_edma3InterruptHiEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- )
- {
- /* Enable the interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_IESRH |= intrHi;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_IESRH |= intrHi;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetLoPendingInterrupts
- *
- * @b Description
- * @n The API gets a bitmask of all low pending interrupts.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- intrLo Status 0-31 of the interrupts
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_IPR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 edmaIntrLo;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get all low pending interrupts for the global region.
- CSL_edma3GetLoPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, &edmaIntrLo);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetLoPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* intrLo
- );
- static inline void CSL_edma3GetLoPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* intrLo
- )
- {
- /* Get the pending interrupts depending on the region */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region. */
- *intrLo = hModule->regs->SHADOW[region].TPCC_IPR;
- }
- else
- {
- /* Global Region. */
- *intrLo = hModule->regs->TPCC_IPR;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetHiPendingInterrupts
- *
- * @b Description
- * @n The API gets a bitmask of all high pending interrupts.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- intrHi Status 32-63 of the interrupts
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_IPRH
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 edmaIntrHi;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get all the high pending interrupts for the global region.
- CSL_edma3GetHiPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, &edmaIntrHi);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetHiPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* intrHi
- );
- static inline void CSL_edma3GetHiPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32* intrHi
- )
- {
- /* Get the pending interrupts depending on the region */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region. */
- *intrHi = hModule->regs->SHADOW[region].TPCC_IPRH;
- }
- else
- {
- /* Global Region. */
- *intrHi = hModule->regs->TPCC_IPRH;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearLoPendingInterrupts
- *
- * @b Description
- * @n This API clears the low pending interrupts using the interrupt bitmasks
- * provided
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- intrLo Interrupt 0-31 (BitMask32) to be cleared
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_ICR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 edmaIntrLo;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get all the pending interrupts for the global region.
- CSL_edma3GetLoPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, &edmaIntrLo);
- ...
- // Clear the pending interrupts for the global region.
- CSL_edma3ClearLoPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, edmaIntrLo);
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3ClearLoPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- );
- static inline void CSL_edma3ClearLoPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrLo
- )
- {
- /* Clear the pending interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_ICR = intrLo;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_ICR = intrLo;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearHiPendingInterrupts
- *
- * @b Description
- * @n This API clears the High pending interrupts using the interrupt bitmasks
- * provided
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- intrHi Interrupt 32-63 (BitMask32) to be cleared
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_ICRH
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 edmaIntrHi;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get all the pending interrupts for the global region.
- CSL_edma3GetHiPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, &edmaIntrHi);
- ...
- // Clear the pending interrupts for the global region.
- CSL_edma3ClearHiPendingInterrupts(hModule, CSL_EDMA3_REGION_GLOBAL, edmaIntrHi);
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3ClearHiPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- );
- static inline void CSL_edma3ClearHiPendingInterrupts
- (
- CSL_Edma3Handle hModule,
- Int region,
- CSL_BitMask32 intrHi
- )
- {
- /* Clear the pending interrupts depending on the region. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region */
- hModule->regs->SHADOW[region].TPCC_ICRH = intrHi;
- }
- else
- {
- /* Global Region */
- hModule->regs->TPCC_ICRH = intrHi;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3InterruptEval
- *
- * @b Description
- * @n The API is used to set the EVAL bit which will cause an interrupt to be
- * generated if any enabled interrupts are still pending.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_IEVAL_EVAL=1
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- CSL_BitMask32 edmaIntrLo;
- CSL_BitMask32 edmaIntrHi;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Interrupt Evaluate for Global Region.
- status = CSL_edma3InterruptEval(hModule, CSL_EDMA3_REGION_GLOBAL);
- ...
- @endverbatim
- * ===========================================================================
- */
- static inline void CSL_edma3InterruptEval
- (
- CSL_Edma3Handle hModule,
- Int region
- );
- static inline void CSL_edma3InterruptEval
- (
- CSL_Edma3Handle hModule,
- Int region
- )
- {
- /* Determine the region for which the interrupt evaluate needs to be done. */
- if (region != CSL_EDMA3_REGION_GLOBAL)
- {
- /* Shadow Region. */
- hModule->regs->SHADOW[region].TPCC_IEVAL = CSL_FMK(TPCC_TPCC_IEVAL_EVAL, (Uint32)1U);
- }
- else
- {
- /* Global Region. */
- hModule->regs->TPCC_IEVAL = CSL_FMK(TPCC_TPCC_IEVAL_EVAL, (Uint32)1U);
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsQDMAChannelEventPending
- *
- * @b Description
- * @n The function gets the status of the specified QDMA channel i.e. if
- * there is a pending event on the specific channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel for which status is being inquired.
- response Place holder for whether an event is set(TRUE) or not (FALSE)
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None.
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QER_QER0;TPCC_TPCC_QER_QER1;TPCC_TPCC_QER_QER2;TPCC_TPCC_QER_QER3;
- * TPCC_TPCC_QER_QER4;TPCC_TPCC_QER_QER5;TPCC_TPCC_QER_QER6;TPCC_TPCC_QER_QER7
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool qdmaStatus;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Is QDMA Channel 1 event pending.
- CSL_edma3IsQDMAChannelEventPending(hModule, 1, &qdmaStatus);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsQDMAChannelEventPending
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsQDMAChannelEventPending
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- )
- {
- /* Read the specific QDMA channel bits. */
- if (CSL_FEXTR(hModule->regs->TPCC_QER, (Uint32)qdmaChannel, (Uint32)qdmaChannel))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3QDMAChannelEnable
- *
- * @b Description
- * @n This API enables the specified QDMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- qdmaChannel QDMA Channel to be enabled.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QEESR_QEESR0=1;TPCC_TPCC_QEESR_QEESR1=1;TPCC_TPCC_QEESR_QEESR2=1;
- * TPCC_TPCC_QEESR_QEESR3=1;TPCC_TPCC_QEESR_QEESR4=1;TPCC_TPCC_QEESR_QEESR5=1;
- * TPCC_TPCC_QEESR_QEESR6=1;TPCC_TPCC_QEESR_QEESR7=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Enables QDMA Channel 1 for Global Region.
- CSL_edma3QDMAChannelEnable(hModule, CSL_EDMA3_REGION_GLOBAL, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3QDMAChannelEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 qdmaChannel
- );
- static inline void CSL_edma3QDMAChannelEnable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 qdmaChannel
- )
- {
- /* Determine the region for which the QDMA channel is to be enabled. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Write to the specific QDMA Channel bits */
- hModule->regs->TPCC_QEESR = CSL_FMKR((uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* Shadow: Write to the specific QDMA Channel bits. */
- hModule->regs->SHADOW[region].TPCC_QEESR = CSL_FMKR((uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3QDMAChannelDisable
- *
- * @b Description
- * @n This API disables the specified QDMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- region Region (Shadown Region or Global)
- qdmaChannel QDMA Channel to be disabled.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QEECR_QEECR0=1;TPCC_TPCC_QEECR_QEECR1=1;TPCC_TPCC_QEECR_QEECR2=1;
- * TPCC_TPCC_QEECR_QEECR3=1;TPCC_TPCC_QEECR_QEECR4=1;TPCC_TPCC_QEECR_QEECR5=1;
- * TPCC_TPCC_QEECR_QEECR6=1;TPCC_TPCC_QEECR_QEECR7=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
-
- // Disables QDMA Channel 0
- CSL_edma3QDMAChannelDisable(hModule, 0);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3QDMAChannelDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 qdmaChannel
- );
- static inline void CSL_edma3QDMAChannelDisable
- (
- CSL_Edma3Handle hModule,
- Int region,
- Uint8 qdmaChannel
- )
- {
- /* Determine the region for which the QDMA channel is to be disabled. */
- if (region == CSL_EDMA3_REGION_GLOBAL)
- {
- /* Global: Write to the specific QDMA Channel bits */
- CSL_FINSR(hModule->regs->TPCC_QEECR, (uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- }
- else
- {
- /* Shadow: Write to the specific QDMA Channel bits. */
- CSL_FINSR(hModule->regs->SHADOW[region].TPCC_QEECR, (uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3GetQDMASecondaryEvents
- *
- * @b Description
- * @n This API reads the QDMA Secondary Event.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaSecEvent QDMA Secondary Event which is populated by this API
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSER
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- Uint32 qdmaSecEvent;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get the QDMA Secondary Event
- CSL_edma3GetQDMASecondaryEvents(hModule, &qdmaSecEvent);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3GetQDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint32* qdmaSecEvent
- );
- static inline void CSL_edma3GetQDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint32* qdmaSecEvent
- )
- {
- /* Read the QDMA Secondary Event. */
- *qdmaSecEvent = hModule->regs->TPCC_QSER;
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3IsDMAChannelSecondaryEventSet
- *
- * @b Description
- * @n This API is used to determine if the secondary Event for a specific DMA
- * channel is set or not?
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel for which secondary Events are being checked
- response Status of the check populated by the API (TRUE if event
- is missed else FALSE)
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Reads
- * @n TPCC_TPCC_QSER_QSER0;TPCC_TPCC_QSER_QSER1;TPCC_TPCC_QSER_QSER2;
- * TPCC_TPCC_QSER_QSER3;TPCC_TPCC_QSER_QSER4;TPCC_TPCC_QSER_QSER5;
- * TPCC_TPCC_QSER_QSER6;TPCC_TPCC_QSER_QSER7;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- CSL_Status status;
- Bool response;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- // Check if the QDMA Channel 1 Secondary Event is set or not?
- CSL_edma3IsQDMAChannelSecondaryEventSet(hModule, 1, &response);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3IsQDMAChannelSecondaryEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- );
- static inline void CSL_edma3IsQDMAChannelSecondaryEventSet
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel,
- Bool* response
- )
- {
- /* Check if the QDMA channel bit is set or not? */
- if (CSL_FEXTR(hModule->regs->TPCC_QSER, (Uint32)qdmaChannel, (Uint32)qdmaChannel))
- {
- *response = TRUE;
- }
- else
- {
- *response = FALSE;
- }
- return;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearQDMASecondaryEvents
- *
- * @b Description
- * @n This API clears the QDMA Secondary Event.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaSecEvent QDMA Secondary Event to be cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QSECR
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- Uint32 qdmaSecEvent;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Get the QDMA Secondary Event
- CSL_edma3GetQDMASecondaryEvents(hModule, &qdmaSecEvent);
- ...
- // Clear the QDMA Secondary Event
- CSL_edma3ClearQDMASecondaryEvents(hModule, qdmaSecEvent);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearQDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint32 qdmaSecEvent
- );
- static inline void CSL_edma3ClearQDMASecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint32 qdmaSecEvent
- )
- {
- /* Clears the QDMA Secondary Event. */
- hModule->regs->TPCC_QSECR = qdmaSecEvent;
- }
- /** ============================================================================
- * @n@b CSL_edma3ClearQDMAChannelSecondaryEvents
- *
- * @b Description
- * @n This API clears the QDMA Secondary Event for a specific QDMA Channel.
- *
- * @b Arguments
- * @verbatim
- hModule Module Handle
- qdmaChannel QDMA Channel for which the secondary event is to be cleared.
- @endverbatim
- *
- * <b> Return Value </b>
- * @n None
- *
- * <b> Pre Condition </b>
- * @n Both @a CSL_edma3Init() and @a CSL_edma3Open() must be called.
- *
- * <b> Post Condition </b>
- * @n None
- *
- * @b Writes
- * @n TPCC_TPCC_QSECR_QSECR0=1;TPCC_TPCC_QSECR_QSECR1=1;TPCC_TPCC_QSECR_QSECR2=1;
- * TPCC_TPCC_QSECR_QSECR3=1;TPCC_TPCC_QSECR_QSECR4=1;TPCC_TPCC_QSECR_QSECR5=1;
- * TPCC_TPCC_QSECR_QSECR6=1;TPCC_TPCC_QSECR_QSECR7=1;
- *
- * @b Example
- * @verbatim
- CSL_Edma3Handle hModule;
- CSL_Edma3Obj edmaObj;
- CSL_Edma3Context context;
- Uint32 qdmaSecEvent;
- // Module Initialization
- CSL_edma3Init(&context);
-
- // Module Level Open
- hModule = CSL_edma3Open(&edmaObj,CSL_EDMA3,NULL,&status);
- ...
- // Clear the QDMA Secondary Event for QDMA channel 1
- CSL_edma3ClearQDMAChannelSecondaryEvents(hModule, 1);
- ...
- @endverbatim
- * ===========================================================================
- */
- /* for misra warnings*/
- static inline void CSL_edma3ClearQDMAChannelSecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- );
- static inline void CSL_edma3ClearQDMAChannelSecondaryEvents
- (
- CSL_Edma3Handle hModule,
- Uint8 qdmaChannel
- )
- {
- /* Clears the QDMA Secondary Event. */
- CSL_FINSR (hModule->regs->TPCC_QSECR, (uint32_t)qdmaChannel, (uint32_t)qdmaChannel, ((uint32_t)1U));
- }
- /**
- @}
- */
- #endif /* CSL_EDMA3AUX_H */
|