123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436 |
- /**
- ******************************************************************************
- * @file stm32h7xx_ll_dmamux.h
- * @author MCD Application Team
- * @brief Header file of DMAMUX LL module.
- ******************************************************************************
- * @attention
- *
- * Copyright (c) 2017 STMicroelectronics.
- * All rights reserved.
- *
- * This software is licensed under terms that can be found in the LICENSE file
- * in the root directory of this software component.
- * If no LICENSE file comes with this software, it is provided AS-IS.
- *
- ******************************************************************************
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef STM32H7xx_LL_DMAMUX_H
- #define STM32H7xx_LL_DMAMUX_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include "stm32h7xx.h"
- /** @addtogroup STM32H7xx_LL_Driver
- * @{
- */
- #if defined (DMAMUX1) || defined (DMAMUX2)
- /** @defgroup DMAMUX_LL DMAMUX
- * @{
- */
- /* Private types -------------------------------------------------------------*/
- /* Private variables ---------------------------------------------------------*/
- /* Private constants ---------------------------------------------------------*/
- /** @defgroup DMAMUX_LL_Private_Constants DMAMUX Private Constants
- * @{
- */
- /* Define used to get DMAMUX CCR register size */
- #define DMAMUX_CCR_SIZE 0x00000004U
- /* Define used to get DMAMUX RGCR register size */
- #define DMAMUX_RGCR_SIZE 0x00000004U
- /* Define used to get DMAMUX RequestGenerator offset */
- #define DMAMUX_REQ_GEN_OFFSET (DMAMUX1_RequestGenerator0_BASE - DMAMUX1_BASE)
- /* Define used to get DMAMUX Channel Status offset */
- #define DMAMUX_CH_STATUS_OFFSET (DMAMUX1_ChannelStatus_BASE - DMAMUX1_BASE)
- /* Define used to get DMAMUX RequestGenerator status offset */
- #define DMAMUX_REQ_GEN_STATUS_OFFSET (DMAMUX1_RequestGenStatus_BASE - DMAMUX1_BASE)
- /**
- * @}
- */
- /* Private macros ------------------------------------------------------------*/
- /* Exported types ------------------------------------------------------------*/
- /* Exported constants --------------------------------------------------------*/
- /** @defgroup DMAMUX_LL_Exported_Constants DMAMUX Exported Constants
- * @{
- */
- /** @defgroup DMAMUX_LL_EC_CLEAR_FLAG Clear Flags Defines
- * @brief Flags defines which can be used with LL_DMAMUX_WriteReg function
- * @{
- */
- #define LL_DMAMUX_CFR_CSOF0 DMAMUX_CFR_CSOF0 /*!< Synchronization Event Overrun Flag Channel 0 */
- #define LL_DMAMUX_CFR_CSOF1 DMAMUX_CFR_CSOF1 /*!< Synchronization Event Overrun Flag Channel 1 */
- #define LL_DMAMUX_CFR_CSOF2 DMAMUX_CFR_CSOF2 /*!< Synchronization Event Overrun Flag Channel 2 */
- #define LL_DMAMUX_CFR_CSOF3 DMAMUX_CFR_CSOF3 /*!< Synchronization Event Overrun Flag Channel 3 */
- #define LL_DMAMUX_CFR_CSOF4 DMAMUX_CFR_CSOF4 /*!< Synchronization Event Overrun Flag Channel 4 */
- #define LL_DMAMUX_CFR_CSOF5 DMAMUX_CFR_CSOF5 /*!< Synchronization Event Overrun Flag Channel 5 */
- #define LL_DMAMUX_CFR_CSOF6 DMAMUX_CFR_CSOF6 /*!< Synchronization Event Overrun Flag Channel 6 */
- #define LL_DMAMUX_CFR_CSOF7 DMAMUX_CFR_CSOF7 /*!< Synchronization Event Overrun Flag Channel 7 */
- #define LL_DMAMUX_CFR_CSOF8 DMAMUX_CFR_CSOF8 /*!< Synchronization Event Overrun Flag Channel 8 */
- #define LL_DMAMUX_CFR_CSOF9 DMAMUX_CFR_CSOF9 /*!< Synchronization Event Overrun Flag Channel 9 */
- #define LL_DMAMUX_CFR_CSOF10 DMAMUX_CFR_CSOF10 /*!< Synchronization Event Overrun Flag Channel 10 */
- #define LL_DMAMUX_CFR_CSOF11 DMAMUX_CFR_CSOF11 /*!< Synchronization Event Overrun Flag Channel 11 */
- #define LL_DMAMUX_CFR_CSOF12 DMAMUX_CFR_CSOF12 /*!< Synchronization Event Overrun Flag Channel 12 */
- #define LL_DMAMUX_CFR_CSOF13 DMAMUX_CFR_CSOF13 /*!< Synchronization Event Overrun Flag Channel 13 */
- #define LL_DMAMUX_CFR_CSOF14 DMAMUX_CFR_CSOF14 /*!< Synchronization Event Overrun Flag Channel 14 */
- #define LL_DMAMUX_CFR_CSOF15 DMAMUX_CFR_CSOF15 /*!< Synchronization Event Overrun Flag Channel 15 */
- #define LL_DMAMUX_RGCFR_RGCOF0 DMAMUX_RGCFR_COF0 /*!< Request Generator 0 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF1 DMAMUX_RGCFR_COF1 /*!< Request Generator 1 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF2 DMAMUX_RGCFR_COF2 /*!< Request Generator 2 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF3 DMAMUX_RGCFR_COF3 /*!< Request Generator 3 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF4 DMAMUX_RGCFR_COF4 /*!< Request Generator 4 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF5 DMAMUX_RGCFR_COF5 /*!< Request Generator 5 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF6 DMAMUX_RGCFR_COF6 /*!< Request Generator 6 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGCFR_RGCOF7 DMAMUX_RGCFR_COF7 /*!< Request Generator 7 Trigger Event Overrun Flag */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_GET_FLAG Get Flags Defines
- * @brief Flags defines which can be used with LL_DMAMUX_ReadReg function
- * @{
- */
- #define LL_DMAMUX_CSR_SOF0 DMAMUX_CSR_SOF0 /*!< Synchronization Event Overrun Flag Channel 0 */
- #define LL_DMAMUX_CSR_SOF1 DMAMUX_CSR_SOF1 /*!< Synchronization Event Overrun Flag Channel 1 */
- #define LL_DMAMUX_CSR_SOF2 DMAMUX_CSR_SOF2 /*!< Synchronization Event Overrun Flag Channel 2 */
- #define LL_DMAMUX_CSR_SOF3 DMAMUX_CSR_SOF3 /*!< Synchronization Event Overrun Flag Channel 3 */
- #define LL_DMAMUX_CSR_SOF4 DMAMUX_CSR_SOF4 /*!< Synchronization Event Overrun Flag Channel 4 */
- #define LL_DMAMUX_CSR_SOF5 DMAMUX_CSR_SOF5 /*!< Synchronization Event Overrun Flag Channel 5 */
- #define LL_DMAMUX_CSR_SOF6 DMAMUX_CSR_SOF6 /*!< Synchronization Event Overrun Flag Channel 6 */
- #define LL_DMAMUX_CSR_SOF7 DMAMUX_CSR_SOF7 /*!< Synchronization Event Overrun Flag Channel 7 */
- #define LL_DMAMUX_CSR_SOF8 DMAMUX_CSR_SOF8 /*!< Synchronization Event Overrun Flag Channel 8 */
- #define LL_DMAMUX_CSR_SOF9 DMAMUX_CSR_SOF9 /*!< Synchronization Event Overrun Flag Channel 9 */
- #define LL_DMAMUX_CSR_SOF10 DMAMUX_CSR_SOF10 /*!< Synchronization Event Overrun Flag Channel 10 */
- #define LL_DMAMUX_CSR_SOF11 DMAMUX_CSR_SOF11 /*!< Synchronization Event Overrun Flag Channel 11 */
- #define LL_DMAMUX_CSR_SOF12 DMAMUX_CSR_SOF12 /*!< Synchronization Event Overrun Flag Channel 12 */
- #define LL_DMAMUX_CSR_SOF13 DMAMUX_CSR_SOF13 /*!< Synchronization Event Overrun Flag Channel 13 */
- #define LL_DMAMUX_CSR_SOF14 DMAMUX_CSR_SOF14 /*!< Synchronization Event Overrun Flag Channel 14 */
- #define LL_DMAMUX_CSR_SOF15 DMAMUX_CSR_SOF15 /*!< Synchronization Event Overrun Flag Channel 15 */
- #define LL_DMAMUX_RGSR_RGOF0 DMAMUX_RGSR_OF0 /*!< Request Generator 0 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF1 DMAMUX_RGSR_OF1 /*!< Request Generator 1 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF2 DMAMUX_RGSR_OF2 /*!< Request Generator 2 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF3 DMAMUX_RGSR_OF3 /*!< Request Generator 3 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF4 DMAMUX_RGSR_OF4 /*!< Request Generator 4 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF5 DMAMUX_RGSR_OF5 /*!< Request Generator 5 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF6 DMAMUX_RGSR_OF6 /*!< Request Generator 6 Trigger Event Overrun Flag */
- #define LL_DMAMUX_RGSR_RGOF7 DMAMUX_RGSR_OF7 /*!< Request Generator 7 Trigger Event Overrun Flag */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_IT IT Defines
- * @brief IT defines which can be used with LL_DMA_ReadReg and LL_DMAMUX_WriteReg functions
- * @{
- */
- #define LL_DMAMUX_CCR_SOIE DMAMUX_CxCR_SOIE /*!< Synchronization Event Overrun Interrupt */
- #define LL_DMAMUX_RGCR_RGOIE DMAMUX_RGxCR_OIE /*!< Request Generation Trigger Event Overrun Interrupt */
- /**
- * @}
- */
- /** @defgroup DMAMUX1_Request_selection DMAMUX1 Request selection
- * @brief DMAMUX1 Request selection
- * @{
- */
- /* DMAMUX1 requests */
- #define LL_DMAMUX1_REQ_MEM2MEM 0U /*!< memory to memory transfer */
- #define LL_DMAMUX1_REQ_GENERATOR0 1U /*!< DMAMUX1 request generator 0 */
- #define LL_DMAMUX1_REQ_GENERATOR1 2U /*!< DMAMUX1 request generator 1 */
- #define LL_DMAMUX1_REQ_GENERATOR2 3U /*!< DMAMUX1 request generator 2 */
- #define LL_DMAMUX1_REQ_GENERATOR3 4U /*!< DMAMUX1 request generator 3 */
- #define LL_DMAMUX1_REQ_GENERATOR4 5U /*!< DMAMUX1 request generator 4 */
- #define LL_DMAMUX1_REQ_GENERATOR5 6U /*!< DMAMUX1 request generator 5 */
- #define LL_DMAMUX1_REQ_GENERATOR6 7U /*!< DMAMUX1 request generator 6 */
- #define LL_DMAMUX1_REQ_GENERATOR7 8U /*!< DMAMUX1 request generator 7 */
- #define LL_DMAMUX1_REQ_ADC1 9U /*!< DMAMUX1 ADC1 request */
- #define LL_DMAMUX1_REQ_ADC2 10U /*!< DMAMUX1 ADC2 request */
- #define LL_DMAMUX1_REQ_TIM1_CH1 11U /*!< DMAMUX1 TIM1 CH1 request */
- #define LL_DMAMUX1_REQ_TIM1_CH2 12U /*!< DMAMUX1 TIM1 CH2 request */
- #define LL_DMAMUX1_REQ_TIM1_CH3 13U /*!< DMAMUX1 TIM1 CH3 request */
- #define LL_DMAMUX1_REQ_TIM1_CH4 14U /*!< DMAMUX1 TIM1 CH4 request */
- #define LL_DMAMUX1_REQ_TIM1_UP 15U /*!< DMAMUX1 TIM1 UP request */
- #define LL_DMAMUX1_REQ_TIM1_TRIG 16U /*!< DMAMUX1 TIM1 TRIG request */
- #define LL_DMAMUX1_REQ_TIM1_COM 17U /*!< DMAMUX1 TIM1 COM request */
- #define LL_DMAMUX1_REQ_TIM2_CH1 18U /*!< DMAMUX1 TIM2 CH1 request */
- #define LL_DMAMUX1_REQ_TIM2_CH2 19U /*!< DMAMUX1 TIM2 CH2 request */
- #define LL_DMAMUX1_REQ_TIM2_CH3 20U /*!< DMAMUX1 TIM2 CH3 request */
- #define LL_DMAMUX1_REQ_TIM2_CH4 21U /*!< DMAMUX1 TIM2 CH4 request */
- #define LL_DMAMUX1_REQ_TIM2_UP 22U /*!< DMAMUX1 TIM2 UP request */
- #define LL_DMAMUX1_REQ_TIM3_CH1 23U /*!< DMAMUX1 TIM3 CH1 request */
- #define LL_DMAMUX1_REQ_TIM3_CH2 24U /*!< DMAMUX1 TIM3 CH2 request */
- #define LL_DMAMUX1_REQ_TIM3_CH3 25U /*!< DMAMUX1 TIM3 CH3 request */
- #define LL_DMAMUX1_REQ_TIM3_CH4 26U /*!< DMAMUX1 TIM3 CH4 request */
- #define LL_DMAMUX1_REQ_TIM3_UP 27U /*!< DMAMUX1 TIM3 UP request */
- #define LL_DMAMUX1_REQ_TIM3_TRIG 28U /*!< DMAMUX1 TIM3 TRIG request */
- #define LL_DMAMUX1_REQ_TIM4_CH1 29U /*!< DMAMUX1 TIM4 CH1 request */
- #define LL_DMAMUX1_REQ_TIM4_CH2 30U /*!< DMAMUX1 TIM4 CH2 request */
- #define LL_DMAMUX1_REQ_TIM4_CH3 31U /*!< DMAMUX1 TIM4 CH3 request */
- #define LL_DMAMUX1_REQ_TIM4_UP 32U /*!< DMAMUX1 TIM4 UP request */
- #define LL_DMAMUX1_REQ_I2C1_RX 33U /*!< DMAMUX1 I2C1 RX request */
- #define LL_DMAMUX1_REQ_I2C1_TX 34U /*!< DMAMUX1 I2C1 TX request */
- #define LL_DMAMUX1_REQ_I2C2_RX 35U /*!< DMAMUX1 I2C2 RX request */
- #define LL_DMAMUX1_REQ_I2C2_TX 36U /*!< DMAMUX1 I2C2 TX request */
- #define LL_DMAMUX1_REQ_SPI1_RX 37U /*!< DMAMUX1 SPI1 RX request */
- #define LL_DMAMUX1_REQ_SPI1_TX 38U /*!< DMAMUX1 SPI1 TX request */
- #define LL_DMAMUX1_REQ_SPI2_RX 39U /*!< DMAMUX1 SPI2 RX request */
- #define LL_DMAMUX1_REQ_SPI2_TX 40U /*!< DMAMUX1 SPI2 TX request */
- #define LL_DMAMUX1_REQ_USART1_RX 41U /*!< DMAMUX1 USART1 RX request */
- #define LL_DMAMUX1_REQ_USART1_TX 42U /*!< DMAMUX1 USART1 TX request */
- #define LL_DMAMUX1_REQ_USART2_RX 43U /*!< DMAMUX1 USART2 RX request */
- #define LL_DMAMUX1_REQ_USART2_TX 44U /*!< DMAMUX1 USART2 TX request */
- #define LL_DMAMUX1_REQ_USART3_RX 45U /*!< DMAMUX1 USART3 RX request */
- #define LL_DMAMUX1_REQ_USART3_TX 46U /*!< DMAMUX1 USART3 TX request */
- #define LL_DMAMUX1_REQ_TIM8_CH1 47U /*!< DMAMUX1 TIM8 CH1 request */
- #define LL_DMAMUX1_REQ_TIM8_CH2 48U /*!< DMAMUX1 TIM8 CH2 request */
- #define LL_DMAMUX1_REQ_TIM8_CH3 49U /*!< DMAMUX1 TIM8 CH3 request */
- #define LL_DMAMUX1_REQ_TIM8_CH4 50U /*!< DMAMUX1 TIM8 CH4 request */
- #define LL_DMAMUX1_REQ_TIM8_UP 51U /*!< DMAMUX1 TIM8 UP request */
- #define LL_DMAMUX1_REQ_TIM8_TRIG 52U /*!< DMAMUX1 TIM8 TRIG request */
- #define LL_DMAMUX1_REQ_TIM8_COM 53U /*!< DMAMUX1 TIM8 COM request */
- #define LL_DMAMUX1_REQ_TIM5_CH1 55U /*!< DMAMUX1 TIM5 CH1 request */
- #define LL_DMAMUX1_REQ_TIM5_CH2 56U /*!< DMAMUX1 TIM5 CH2 request */
- #define LL_DMAMUX1_REQ_TIM5_CH3 57U /*!< DMAMUX1 TIM5 CH3 request */
- #define LL_DMAMUX1_REQ_TIM5_CH4 58U /*!< DMAMUX1 TIM5 CH4 request */
- #define LL_DMAMUX1_REQ_TIM5_UP 59U /*!< DMAMUX1 TIM5 UP request */
- #define LL_DMAMUX1_REQ_TIM5_TRIG 60U /*!< DMAMUX1 TIM5 TRIG request */
- #define LL_DMAMUX1_REQ_SPI3_RX 61U /*!< DMAMUX1 SPI3 RX request */
- #define LL_DMAMUX1_REQ_SPI3_TX 62U /*!< DMAMUX1 SPI3 TX request */
- #define LL_DMAMUX1_REQ_UART4_RX 63U /*!< DMAMUX1 UART4 RX request */
- #define LL_DMAMUX1_REQ_UART4_TX 64U /*!< DMAMUX1 UART4 TX request */
- #define LL_DMAMUX1_REQ_UART5_RX 65U /*!< DMAMUX1 UART5 RX request */
- #define LL_DMAMUX1_REQ_UART5_TX 66U /*!< DMAMUX1 UART5 TX request */
- #define LL_DMAMUX1_REQ_DAC1_CH1 67U /*!< DMAMUX1 DAC1 Channel 1 request */
- #define LL_DMAMUX1_REQ_DAC1_CH2 68U /*!< DMAMUX1 DAC1 Channel 2 request */
- #define LL_DMAMUX1_REQ_TIM6_UP 69U /*!< DMAMUX1 TIM6 UP request */
- #define LL_DMAMUX1_REQ_TIM7_UP 70U /*!< DMAMUX1 TIM7 UP request */
- #define LL_DMAMUX1_REQ_USART6_RX 71U /*!< DMAMUX1 USART6 RX request */
- #define LL_DMAMUX1_REQ_USART6_TX 72U /*!< DMAMUX1 USART6 TX request */
- #define LL_DMAMUX1_REQ_I2C3_RX 73U /*!< DMAMUX1 I2C3 RX request */
- #define LL_DMAMUX1_REQ_I2C3_TX 74U /*!< DMAMUX1 I2C3 TX request */
- #if defined (PSSI)
- #define LL_DMAMUX1_REQ_DCMI_PSSI 75U /*!< DMAMUX1 DCMI/PSSI request */
- #define LL_DMAMUX1_REQ_DCMI LL_DMAMUX1_REQ_DCMI_PSSI /* Legacy define */
- #else
- #define LL_DMAMUX1_REQ_DCMI 75U /*!< DMAMUX1 DCMI request */
- #endif /* PSSI */
- #define LL_DMAMUX1_REQ_CRYP_IN 76U /*!< DMAMUX1 CRYP IN request */
- #define LL_DMAMUX1_REQ_CRYP_OUT 77U /*!< DMAMUX1 CRYP OUT request */
- #define LL_DMAMUX1_REQ_HASH_IN 78U /*!< DMAMUX1 HASH IN request */
- #define LL_DMAMUX1_REQ_UART7_RX 79U /*!< DMAMUX1 UART7 RX request */
- #define LL_DMAMUX1_REQ_UART7_TX 80U /*!< DMAMUX1 UART7 TX request */
- #define LL_DMAMUX1_REQ_UART8_RX 81U /*!< DMAMUX1 UART8 RX request */
- #define LL_DMAMUX1_REQ_UART8_TX 82U /*!< DMAMUX1 UART8 TX request */
- #define LL_DMAMUX1_REQ_SPI4_RX 83U /*!< DMAMUX1 SPI4 RX request */
- #define LL_DMAMUX1_REQ_SPI4_TX 84U /*!< DMAMUX1 SPI4 TX request */
- #define LL_DMAMUX1_REQ_SPI5_RX 85U /*!< DMAMUX1 SPI5 RX request */
- #define LL_DMAMUX1_REQ_SPI5_TX 86U /*!< DMAMUX1 SPI5 TX request */
- #define LL_DMAMUX1_REQ_SAI1_A 87U /*!< DMAMUX1 SAI1 A request */
- #define LL_DMAMUX1_REQ_SAI1_B 88U /*!< DMAMUX1 SAI1 B request */
- #if defined(SAI2)
- #define LL_DMAMUX1_REQ_SAI2_A 89U /*!< DMAMUX1 SAI2 A request */
- #define LL_DMAMUX1_REQ_SAI2_B 90U /*!< DMAMUX1 SAI2 B request */
- #endif /* SAI2 */
- #define LL_DMAMUX1_REQ_SWPMI_RX 91U /*!< DMAMUX1 SWPMI RX request */
- #define LL_DMAMUX1_REQ_SWPMI_TX 92U /*!< DMAMUX1 SWPMI TX request */
- #define LL_DMAMUX1_REQ_SPDIF_RX_DT 93U /*!< DMAMUX1 SPDIF RXDT request */
- #define LL_DMAMUX1_REQ_SPDIF_RX_CS 94U /*!< DMAMUX1 SPDIF RXCS request */
- #if defined (HRTIM1)
- #define LL_DMAMUX1_REQ_HRTIM_MASTER 95U /*!< DMAMUX1 HRTIM1 Master request 1 */
- #define LL_DMAMUX1_REQ_HRTIM_TIMER_A 96U /*!< DMAMUX1 HRTIM1 Timer A request 2 */
- #define LL_DMAMUX1_REQ_HRTIM_TIMER_B 97U /*!< DMAMUX1 HRTIM1 Timer B request 3 */
- #define LL_DMAMUX1_REQ_HRTIM_TIMER_C 98U /*!< DMAMUX1 HRTIM1 Timer C request 4 */
- #define LL_DMAMUX1_REQ_HRTIM_TIMER_D 99U /*!< DMAMUX1 HRTIM1 Timer D request 5 */
- #define LL_DMAMUX1_REQ_HRTIM_TIMER_E 100U /*!< DMAMUX1 HRTIM1 Timer E request 6 */
- #endif /* HRTIM1 */
- #define LL_DMAMUX1_REQ_DFSDM1_FLT0 101U /*!< DMAMUX1 DFSDM1 Filter0 request */
- #define LL_DMAMUX1_REQ_DFSDM1_FLT1 102U /*!< DMAMUX1 DFSDM1 Filter1 request */
- #define LL_DMAMUX1_REQ_DFSDM1_FLT2 103U /*!< DMAMUX1 DFSDM1 Filter2 request */
- #define LL_DMAMUX1_REQ_DFSDM1_FLT3 104U /*!< DMAMUX1 DFSDM1 Filter3 request */
- #define LL_DMAMUX1_REQ_TIM15_CH1 105U /*!< DMAMUX1 TIM15 CH1 request */
- #define LL_DMAMUX1_REQ_TIM15_UP 106U /*!< DMAMUX1 TIM15 UP request */
- #define LL_DMAMUX1_REQ_TIM15_TRIG 107U /*!< DMAMUX1 TIM15 TRIG request */
- #define LL_DMAMUX1_REQ_TIM15_COM 108U /*!< DMAMUX1 TIM15 COM request */
- #define LL_DMAMUX1_REQ_TIM16_CH1 109U /*!< DMAMUX1 TIM16 CH1 request */
- #define LL_DMAMUX1_REQ_TIM16_UP 110U /*!< DMAMUX1 TIM16 UP request */
- #define LL_DMAMUX1_REQ_TIM17_CH1 111U /*!< DMAMUX1 TIM17 CH1 request */
- #define LL_DMAMUX1_REQ_TIM17_UP 112U /*!< DMAMUX1 TIM17 UP request */
- #if defined (SAI3)
- #define LL_DMAMUX1_REQ_SAI3_A 113U /*!< DMAMUX1 SAI3 A request */
- #define LL_DMAMUX1_REQ_SAI3_B 114U /*!< DMAMUX1 SAI3 B request */
- #endif /* SAI3 */
- #if defined (ADC3)
- #define LL_DMAMUX1_REQ_ADC3 115U /*!< DMAMUX1 ADC3 request */
- #endif /* ADC3 */
- #if defined (UART9)
- #define LL_DMAMUX1_REQ_UART9_RX 116U /*!< DMAMUX1 UART9 RX request */
- #define LL_DMAMUX1_REQ_UART9_TX 117U /*!< DMAMUX1 UART9 TX request */
- #endif /* UART9 */
- #if defined (USART10)
- #define LL_DMAMUX1_REQ_USART10_RX 118U /*!< DMAMUX1 USART10 RX request */
- #define LL_DMAMUX1_REQ_USART10_TX 119U /*!< DMAMUX1 USART10 TX request */
- #endif /* USART10 */
- #if defined(FMAC)
- #define LL_DMAMUX1_REQ_FMAC_READ 120U /*!< DMAMUX1 FMAC Read request */
- #define LL_DMAMUX1_REQ_FMAC_WRITE 121U /*!< DMAMUX1 FMAC Write request */
- #endif /* FMAC */
- #if defined(CORDIC)
- #define LL_DMAMUX1_REQ_CORDIC_READ 122U /*!< DMAMUX1 CORDIC Read request */
- #define LL_DMAMUX1_REQ_CORDIC_WRITE 123U /*!< DMAMUX1 CORDIC Write request */
- #endif /* CORDIC */
- #if defined(I2C5)
- #define LL_DMAMUX1_REQ_I2C5_RX 124U /*!< DMAMUX1 I2C5 RX request */
- #define LL_DMAMUX1_REQ_I2C5_TX 125U /*!< DMAMUX1 I2C5 TX request */
- #endif /* I2C5 */
- #if defined(TIM23)
- #define LL_DMAMUX1_REQ_TIM23_CH1 126U /*!< DMAMUX1 TIM23 CH1 request */
- #define LL_DMAMUX1_REQ_TIM23_CH2 127U /*!< DMAMUX1 TIM23 CH2 request */
- #define LL_DMAMUX1_REQ_TIM23_CH3 128U /*!< DMAMUX1 TIM23 CH3 request */
- #define LL_DMAMUX1_REQ_TIM23_CH4 129U /*!< DMAMUX1 TIM23 CH4 request */
- #define LL_DMAMUX1_REQ_TIM23_UP 130U /*!< DMAMUX1 TIM23 UP request */
- #define LL_DMAMUX1_REQ_TIM23_TRIG 131U /*!< DMAMUX1 TIM23 TRIG request */
- #endif /* TIM23 */
- #if defined(TIM24)
- #define LL_DMAMUX1_REQ_TIM24_CH1 132U /*!< DMAMUX1 TIM24 CH1 request */
- #define LL_DMAMUX1_REQ_TIM24_CH2 133U /*!< DMAMUX1 TIM24 CH2 request */
- #define LL_DMAMUX1_REQ_TIM24_CH3 134U /*!< DMAMUX1 TIM24 CH3 request */
- #define LL_DMAMUX1_REQ_TIM24_CH4 135U /*!< DMAMUX1 TIM24 CH4 request */
- #define LL_DMAMUX1_REQ_TIM24_UP 136U /*!< DMAMUX1 TIM24 UP request */
- #define LL_DMAMUX1_REQ_TIM24_TRIG 137U /*!< DMAMUX1 TIM24 TRIG request */
- #endif /* TIM24 */
- /**
- * @}
- */
- /** @defgroup DMAMUX2_Request_selection DMAMUX2 Request selection
- * @brief DMAMUX2 Request selection
- * @{
- */
- /* DMAMUX2 requests */
- #define LL_DMAMUX2_REQ_MEM2MEM 0U /*!< memory to memory transfer */
- #define LL_DMAMUX2_REQ_GENERATOR0 1U /*!< DMAMUX2 request generator 0 */
- #define LL_DMAMUX2_REQ_GENERATOR1 2U /*!< DMAMUX2 request generator 1 */
- #define LL_DMAMUX2_REQ_GENERATOR2 3U /*!< DMAMUX2 request generator 2 */
- #define LL_DMAMUX2_REQ_GENERATOR3 4U /*!< DMAMUX2 request generator 3 */
- #define LL_DMAMUX2_REQ_GENERATOR4 5U /*!< DMAMUX2 request generator 4 */
- #define LL_DMAMUX2_REQ_GENERATOR5 6U /*!< DMAMUX2 request generator 5 */
- #define LL_DMAMUX2_REQ_GENERATOR6 7U /*!< DMAMUX2 request generator 6 */
- #define LL_DMAMUX2_REQ_GENERATOR7 8U /*!< DMAMUX2 request generator 7 */
- #define LL_DMAMUX2_REQ_LPUART1_RX 9U /*!< DMAMUX2 LP_UART1_RX request */
- #define LL_DMAMUX2_REQ_LPUART1_TX 10U /*!< DMAMUX2 LP_UART1_TX request */
- #define LL_DMAMUX2_REQ_SPI6_RX 11U /*!< DMAMUX2 SPI6 RX request */
- #define LL_DMAMUX2_REQ_SPI6_TX 12U /*!< DMAMUX2 SPI6 TX request */
- #define LL_DMAMUX2_REQ_I2C4_RX 13U /*!< DMAMUX2 I2C4 RX request */
- #define LL_DMAMUX2_REQ_I2C4_TX 14U /*!< DMAMUX2 I2C4 TX request */
- #if defined (SAI4)
- #define LL_DMAMUX2_REQ_SAI4_A 15U /*!< DMAMUX2 SAI4 A request */
- #define LL_DMAMUX2_REQ_SAI4_B 16U /*!< DMAMUX2 SAI4 B request */
- #endif /* SAI4 */
- #if defined (ADC3)
- #define LL_DMAMUX2_REQ_ADC3 17U /*!< DMAMUX2 ADC3 request */
- #endif /* ADC3 */
- #if defined (DAC2)
- #define LL_DMAMUX2_REQ_DAC2_CH1 17U /*!< DMAMUX2 DAC2 CH1 request */
- #endif /* DAC2 */
- #if defined (DFSDM2_Channel0)
- #define LL_DMAMUX2_REQ_DFSDM2_FLT0 18U /*!< DMAMUX2 DFSDM2 Filter0 request */
- #endif /* DFSDM2_Channel0 */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_CHANNEL DMAMUX Channel
- * @{
- */
- #define LL_DMAMUX_CHANNEL_0 0x00000000U /*!< DMAMUX1 Channel 0 connected to DMA1 Channel 0 , DMAMUX2 Channel 0 connected to BDMA Channel 0 */
- #define LL_DMAMUX_CHANNEL_1 0x00000001U /*!< DMAMUX1 Channel 1 connected to DMA1 Channel 1 , DMAMUX2 Channel 1 connected to BDMA Channel 1 */
- #define LL_DMAMUX_CHANNEL_2 0x00000002U /*!< DMAMUX1 Channel 2 connected to DMA1 Channel 2 , DMAMUX2 Channel 2 connected to BDMA Channel 2 */
- #define LL_DMAMUX_CHANNEL_3 0x00000003U /*!< DMAMUX1 Channel 3 connected to DMA1 Channel 3 , DMAMUX2 Channel 3 connected to BDMA Channel 3 */
- #define LL_DMAMUX_CHANNEL_4 0x00000004U /*!< DMAMUX1 Channel 4 connected to DMA1 Channel 4 , DMAMUX2 Channel 4 connected to BDMA Channel 4 */
- #define LL_DMAMUX_CHANNEL_5 0x00000005U /*!< DMAMUX1 Channel 5 connected to DMA1 Channel 5 , DMAMUX2 Channel 5 connected to BDMA Channel 5 */
- #define LL_DMAMUX_CHANNEL_6 0x00000006U /*!< DMAMUX1 Channel 6 connected to DMA1 Channel 6 , DMAMUX2 Channel 6 connected to BDMA Channel 6 */
- #define LL_DMAMUX_CHANNEL_7 0x00000007U /*!< DMAMUX1 Channel 7 connected to DMA1 Channel 7 , DMAMUX2 Channel 7 connected to BDMA Channel 7 */
- #define LL_DMAMUX_CHANNEL_8 0x00000008U /*!< DMAMUX1 Channel 8 connected to DMA2 Channel 0 */
- #define LL_DMAMUX_CHANNEL_9 0x00000009U /*!< DMAMUX1 Channel 9 connected to DMA2 Channel 1 */
- #define LL_DMAMUX_CHANNEL_10 0x0000000AU /*!< DMAMUX1 Channel 10 connected to DMA2 Channel 2 */
- #define LL_DMAMUX_CHANNEL_11 0x0000000BU /*!< DMAMUX1 Channel 11 connected to DMA2 Channel 3 */
- #define LL_DMAMUX_CHANNEL_12 0x0000000CU /*!< DMAMUX1 Channel 12 connected to DMA2 Channel 4 */
- #define LL_DMAMUX_CHANNEL_13 0x0000000DU /*!< DMAMUX1 Channel 13 connected to DMA2 Channel 5 */
- #define LL_DMAMUX_CHANNEL_14 0x0000000EU /*!< DMAMUX1 Channel 14 connected to DMA2 Channel 6 */
- #define LL_DMAMUX_CHANNEL_15 0x0000000FU /*!< DMAMUX1 Channel 15 connected to DMA2 Channel 7 */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_SYNC_NO Synchronization Signal Polarity
- * @{
- */
- #define LL_DMAMUX_SYNC_NO_EVENT 0x00000000U /*!< All requests are blocked */
- #define LL_DMAMUX_SYNC_POL_RISING DMAMUX_CxCR_SPOL_0 /*!< Synchronization on event on rising edge */
- #define LL_DMAMUX_SYNC_POL_FALLING DMAMUX_CxCR_SPOL_1 /*!< Synchronization on event on falling edge */
- #define LL_DMAMUX_SYNC_POL_RISING_FALLING (DMAMUX_CxCR_SPOL_0 | DMAMUX_CxCR_SPOL_1) /*!< Synchronization on event on rising and falling edge */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_SYNC_EVT Synchronization Signal Event
- * @{
- */
- #define LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT 0x00000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel0 Event */
- #define LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT 0x01000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel1 Event */
- #define LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT 0x02000000U /*!< DMAMUX1 synchronization Signal is DMAMUX1 Channel2 Event */
- #define LL_DMAMUX1_SYNC_LPTIM1_OUT 0x03000000U /*!< DMAMUX1 synchronization Signal is LPTIM1 OUT */
- #define LL_DMAMUX1_SYNC_LPTIM2_OUT 0x04000000U /*!< DMAMUX1 synchronization Signal is LPTIM2 OUT */
- #define LL_DMAMUX1_SYNC_LPTIM3_OUT 0x05000000U /*!< DMAMUX1 synchronization Signal is LPTIM3 OUT */
- #define LL_DMAMUX1_SYNC_EXTI0 0x06000000U /*!< DMAMUX1 synchronization Signal is EXTI0 IT */
- #define LL_DMAMUX1_SYNC_TIM12_TRGO 0x07000000U /*!< DMAMUX1 synchronization Signal is TIM12 TRGO */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT 0x00000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel0 Event */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT 0x01000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel1 Event */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT 0x02000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel2 Event */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT 0x03000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel3 Event */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT 0x04000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel4 Event */
- #define LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT 0x05000000U /*!< DMAMUX2 synchronization Signal is DMAMUX2 Channel5 Event */
- #define LL_DMAMUX2_SYNC_LPUART1_RX_WKUP 0x06000000U /*!< DMAMUX2 synchronization Signal is LPUART1 RX Wakeup */
- #define LL_DMAMUX2_SYNC_LPUART1_TX_WKUP 0x07000000U /*!< DMAMUX2 synchronization Signal is LPUART1 TX Wakeup */
- #define LL_DMAMUX2_SYNC_LPTIM2_OUT 0x08000000U /*!< DMAMUX2 synchronization Signal is LPTIM2 output */
- #define LL_DMAMUX2_SYNC_LPTIM3_OUT 0x09000000U /*!< DMAMUX2 synchronization Signal is LPTIM3 output */
- #define LL_DMAMUX2_SYNC_I2C4_WKUP 0x0A000000U /*!< DMAMUX2 synchronization Signal is I2C4 Wakeup */
- #define LL_DMAMUX2_SYNC_SPI6_WKUP 0x0B000000U /*!< DMAMUX2 synchronization Signal is SPI6 Wakeup */
- #define LL_DMAMUX2_SYNC_COMP1_OUT 0x0C000000U /*!< DMAMUX2 synchronization Signal is Comparator 1 output */
- #define LL_DMAMUX2_SYNC_RTC_WKUP 0x0D000000U /*!< DMAMUX2 synchronization Signal is RTC Wakeup */
- #define LL_DMAMUX2_SYNC_EXTI0 0x0E000000U /*!< DMAMUX2 synchronization Signal is EXTI0 IT */
- #define LL_DMAMUX2_SYNC_EXTI2 0x0F000000U /*!< DMAMUX2 synchronization Signal is EXTI2 IT */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_REQUEST_GENERATOR Request Generator Channel
- * @{
- */
- #define LL_DMAMUX_REQ_GEN_0 0x00000000U
- #define LL_DMAMUX_REQ_GEN_1 0x00000001U
- #define LL_DMAMUX_REQ_GEN_2 0x00000002U
- #define LL_DMAMUX_REQ_GEN_3 0x00000003U
- #define LL_DMAMUX_REQ_GEN_4 0x00000004U
- #define LL_DMAMUX_REQ_GEN_5 0x00000005U
- #define LL_DMAMUX_REQ_GEN_6 0x00000006U
- #define LL_DMAMUX_REQ_GEN_7 0x00000007U
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_REQUEST_GEN_POLARITY External Request Signal Generation Polarity
- * @{
- */
- #define LL_DMAMUX_REQ_GEN_NO_EVENT 0x00000000U /*!< No external DMA request generation */
- #define LL_DMAMUX_REQ_GEN_POL_RISING DMAMUX_RGxCR_GPOL_0 /*!< External DMA request generation on event on rising edge */
- #define LL_DMAMUX_REQ_GEN_POL_FALLING DMAMUX_RGxCR_GPOL_1 /*!< External DMA request generation on event on falling edge */
- #define LL_DMAMUX_REQ_GEN_POL_RISING_FALLING (DMAMUX_RGxCR_GPOL_0 | DMAMUX_RGxCR_GPOL_1) /*!< External DMA request generation on rising and falling edge */
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EC_REQUEST_GEN External Request Signal Generation
- * @{
- */
- #define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT 0U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel0 Event */
- #define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT 1U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel1 Event */
- #define LL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT 2U /*!< DMAMUX1 Request generator Signal is DMAMUX1 Channel2 Event */
- #define LL_DMAMUX1_REQ_GEN_LPTIM1_OUT 3U /*!< DMAMUX1 Request generator Signal is LPTIM1 OUT */
- #define LL_DMAMUX1_REQ_GEN_LPTIM2_OUT 4U /*!< DMAMUX1 Request generator Signal is LPTIM2 OUT */
- #define LL_DMAMUX1_REQ_GEN_LPTIM3_OUT 5U /*!< DMAMUX1 Request generator Signal is LPTIM3 OUT */
- #define LL_DMAMUX1_REQ_GEN_EXTI0 6U /*!< DMAMUX1 Request generator Signal is EXTI0 IT */
- #define LL_DMAMUX1_REQ_GEN_TIM12_TRGO 7U /*!< DMAMUX1 Request generator Signal is TIM12 TRGO */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT 0U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel0 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT 1U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel1 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT 2U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel2 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT 3U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel3 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT 4U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel4 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT 5U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel5 Event */
- #define LL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT 6U /*!< DMAMUX2 Request generator Signal is DMAMUX2 Channel6 Event */
- #define LL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP 7U /*!< DMAMUX2 Request generator Signal is LPUART1 RX Wakeup */
- #define LL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP 8U /*!< DMAMUX2 Request generator Signal is LPUART1 TX Wakeup */
- #define LL_DMAMUX2_REQ_GEN_LPTIM2_WKUP 9U /*!< DMAMUX2 Request generator Signal is LPTIM2 Wakeup */
- #define LL_DMAMUX2_REQ_GEN_LPTIM2_OUT 10U /*!< DMAMUX2 Request generator Signal is LPTIM2 OUT */
- #define LL_DMAMUX2_REQ_GEN_LPTIM3_WKUP 11U /*!< DMAMUX2 Request generator Signal is LPTIM3 Wakeup */
- #define LL_DMAMUX2_REQ_GEN_LPTIM3_OUT 12U /*!< DMAMUX2 Request generator Signal is LPTIM3 OUT */
- #if defined (LPTIM4)
- #define LL_DMAMUX2_REQ_GEN_LPTIM4_WKUP 13U /*!< DMAMUX2 Request generator Signal is LPTIM4 Wakeup */
- #endif /* LPTIM4 */
- #if defined (LPTIM5)
- #define LL_DMAMUX2_REQ_GEN_LPTIM5_WKUP 14U /*!< DMAMUX2 Request generator Signal is LPTIM5 Wakeup */
- #endif /* LPTIM5 */
- #define LL_DMAMUX2_REQ_GEN_I2C4_WKUP 15U /*!< DMAMUX2 Request generator Signal is I2C4 Wakeup */
- #define LL_DMAMUX2_REQ_GEN_SPI6_WKUP 16U /*!< DMAMUX2 Request generator Signal is SPI6 Wakeup */
- #define LL_DMAMUX2_REQ_GEN_COMP1_OUT 17U /*!< DMAMUX2 Request generator Signal is Comparator 1 output */
- #define LL_DMAMUX2_REQ_GEN_COMP2_OUT 18U /*!< DMAMUX2 Request generator Signal is Comparator 2 output */
- #define LL_DMAMUX2_REQ_GEN_RTC_WKUP 19U /*!< DMAMUX2 Request generator Signal is RTC Wakeup */
- #define LL_DMAMUX2_REQ_GEN_EXTI0 20U /*!< DMAMUX2 Request generator Signal is EXTI0 */
- #define LL_DMAMUX2_REQ_GEN_EXTI2 21U /*!< DMAMUX2 Request generator Signal is EXTI2 */
- #define LL_DMAMUX2_REQ_GEN_I2C4_IT_EVT 22U /*!< DMAMUX2 Request generator Signal is I2C4 IT Event */
- #define LL_DMAMUX2_REQ_GEN_SPI6_IT 23U /*!< DMAMUX2 Request generator Signal is SPI6 IT */
- #define LL_DMAMUX2_REQ_GEN_LPUART1_TX_IT 24U /*!< DMAMUX2 Request generator Signal is LPUART1 Tx IT */
- #define LL_DMAMUX2_REQ_GEN_LPUART1_RX_IT 25U /*!< DMAMUX2 Request generator Signal is LPUART1 Rx IT */
- #if defined (ADC3)
- #define LL_DMAMUX2_REQ_GEN_ADC3_IT 26U /*!< DMAMUX2 Request generator Signal is ADC3 IT */
- #define LL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT 27U /*!< DMAMUX2 Request generator Signal is ADC3 Analog Watchdog 1 output */
- #endif /* ADC3 */
- #define LL_DMAMUX2_REQ_GEN_BDMA_CH0_IT 28U /*!< DMAMUX2 Request generator Signal is BDMA Channel 0 IT */
- #define LL_DMAMUX2_REQ_GEN_BDMA_CH1_IT 29U /*!< DMAMUX2 Request generator Signal is BDMA Channel 1 IT */
- /**
- * @}
- */
- /**
- * @}
- */
- /* Exported macro ------------------------------------------------------------*/
- /** @defgroup DMAMUX_LL_Exported_Macros DMAMUX Exported Macros
- * @{
- */
- /** @defgroup DMAMUX_LL_EM_WRITE_READ Common Write and read registers macros
- * @{
- */
- /**
- * @brief Write a value in DMAMUX register
- * @param __INSTANCE__ DMAMUX Instance
- * @param __REG__ Register to be written
- * @param __VALUE__ Value to be written in the register
- * @retval None
- */
- #define LL_DMAMUX_WriteReg(__INSTANCE__, __REG__, __VALUE__) WRITE_REG(__INSTANCE__->__REG__, (__VALUE__))
- /**
- * @brief Read a value in DMAMUX register
- * @param __INSTANCE__ DMAMUX Instance
- * @param __REG__ Register to be read
- * @retval Register value
- */
- #define LL_DMAMUX_ReadReg(__INSTANCE__, __REG__) READ_REG(__INSTANCE__->__REG__)
- /**
- * @}
- */
- /**
- * @}
- */
- /* Exported functions --------------------------------------------------------*/
- /** @defgroup DMAMUX_LL_Exported_Functions DMAMUX Exported Functions
- * @{
- */
- /** @defgroup DMAMUX_LL_EF_Configuration Configuration
- * @{
- */
- /**
- * @brief Set DMAMUX request ID for DMAMUX Channel x.
- * @note DMAMUX1 channel 0 to 7 are mapped to DMA1 channel 0 to 7.
- * DMAMUX1 channel 8 to 15 are mapped to DMA2 channel 0 to 7.
- * DMAMUX2 channel 0 to 7 are mapped to BDMA channel 0 to 7.
- * @rmtoll CxCR DMAREQ_ID LL_DMAMUX_SetRequestID
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @param Request This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX1_REQ_MEM2MEM
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR0
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR1
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR2
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR3
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR4
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR5
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR6
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR7
- * @arg @ref LL_DMAMUX1_REQ_ADC1
- * @arg @ref LL_DMAMUX1_REQ_ADC2
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM1_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM1_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM2_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM3_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM4_UP
- * @arg @ref LL_DMAMUX1_REQ_I2C1_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C1_TX
- * @arg @ref LL_DMAMUX1_REQ_I2C2_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C2_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI1_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI1_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI2_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI2_TX
- * @arg @ref LL_DMAMUX1_REQ_USART1_RX
- * @arg @ref LL_DMAMUX1_REQ_USART1_TX
- * @arg @ref LL_DMAMUX1_REQ_USART2_RX
- * @arg @ref LL_DMAMUX1_REQ_USART2_TX
- * @arg @ref LL_DMAMUX1_REQ_USART3_RX
- * @arg @ref LL_DMAMUX1_REQ_USART3_TX
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM8_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM8_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM5_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG
- * @arg @ref LL_DMAMUX1_REQ_SPI3_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI3_TX
- * @arg @ref LL_DMAMUX1_REQ_UART4_RX
- * @arg @ref LL_DMAMUX1_REQ_UART4_TX
- * @arg @ref LL_DMAMUX1_REQ_UART5_RX
- * @arg @ref LL_DMAMUX1_REQ_UART5_TX
- * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1
- * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM6_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM7_UP
- * @arg @ref LL_DMAMUX1_REQ_USART6_RX
- * @arg @ref LL_DMAMUX1_REQ_USART6_TX
- * @arg @ref LL_DMAMUX1_REQ_I2C3_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C3_TX
- * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*)
- * @arg @ref LL_DMAMUX1_REQ_CRYP_IN
- * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT
- * @arg @ref LL_DMAMUX1_REQ_HASH_IN
- * @arg @ref LL_DMAMUX1_REQ_UART7_RX
- * @arg @ref LL_DMAMUX1_REQ_UART7_TX
- * @arg @ref LL_DMAMUX1_REQ_UART8_RX
- * @arg @ref LL_DMAMUX1_REQ_UART8_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI4_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI4_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI5_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI5_TX
- * @arg @ref LL_DMAMUX1_REQ_SAI1_A
- * @arg @ref LL_DMAMUX1_REQ_SAI1_B
- * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*)
- * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*)
- * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX
- * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX
- * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT
- * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*)
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3
- * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM15_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM15_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM16_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM17_UP
- * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*)
- * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*)
- * @arg @ref LL_DMAMUX1_REQ_ADC3 (*)
- * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*)
- * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*)
- * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*)
- * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*)
- * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*)
- * @arg @ref LL_DMAMUX2_REQ_MEM2MEM
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR0
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR1
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR2
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR3
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR4
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR5
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR6
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR7
- * @arg @ref LL_DMAMUX2_REQ_LPUART1_RX
- * @arg @ref LL_DMAMUX2_REQ_LPUART1_TX
- * @arg @ref LL_DMAMUX2_REQ_SPI6_RX
- * @arg @ref LL_DMAMUX2_REQ_SPI6_TX
- * @arg @ref LL_DMAMUX2_REQ_I2C4_RX
- * @arg @ref LL_DMAMUX2_REQ_I2C4_TX
- * @arg @ref LL_DMAMUX2_REQ_SAI4_A (*)
- * @arg @ref LL_DMAMUX2_REQ_SAI4_B (*)
- * @arg @ref LL_DMAMUX2_REQ_ADC3 (*)
- * @arg @ref LL_DMAMUX2_REQ_DAC2_CH1 (*)
- * @arg @ref LL_DMAMUX2_REQ_DFSDM2_FLT0 (*)
- *
- * @note (*) Availability depends on devices.
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetRequestID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t Request)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_DMAREQ_ID, Request);
- }
- /**
- * @brief Get DMAMUX request ID for DMAMUX Channel x.
- * @note DMAMUX1 channel 0 to 7 are mapped to DMA1 channel 0 to 7.
- * DMAMUX1 channel 8 to 15 are mapped to DMA2 channel 0 to 7.
- * DMAMUX2 channel 0 to 7 are mapped to BDMA channel 0 to 7.
- * @rmtoll CxCR DMAREQ_ID LL_DMAMUX_GetRequestID
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_DMAMUX1_REQ_MEM2MEM
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR0
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR1
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR2
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR3
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR4
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR5
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR6
- * @arg @ref LL_DMAMUX1_REQ_GENERATOR7
- * @arg @ref LL_DMAMUX1_REQ_ADC1
- * @arg @ref LL_DMAMUX1_REQ_ADC2
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM1_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM1_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM1_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM1_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM2_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM2_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM3_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM3_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM3_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM4_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM4_UP
- * @arg @ref LL_DMAMUX1_REQ_I2C1_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C1_TX
- * @arg @ref LL_DMAMUX1_REQ_I2C2_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C2_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI1_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI1_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI2_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI2_TX
- * @arg @ref LL_DMAMUX1_REQ_USART1_RX
- * @arg @ref LL_DMAMUX1_REQ_USART1_TX
- * @arg @ref LL_DMAMUX1_REQ_USART2_RX
- * @arg @ref LL_DMAMUX1_REQ_USART2_TX
- * @arg @ref LL_DMAMUX1_REQ_USART3_RX
- * @arg @ref LL_DMAMUX1_REQ_USART3_TX
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM8_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM8_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM8_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM8_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH3
- * @arg @ref LL_DMAMUX1_REQ_TIM5_CH4
- * @arg @ref LL_DMAMUX1_REQ_TIM5_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM5_TRIG
- * @arg @ref LL_DMAMUX1_REQ_SPI3_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI3_TX
- * @arg @ref LL_DMAMUX1_REQ_UART4_RX
- * @arg @ref LL_DMAMUX1_REQ_UART4_TX
- * @arg @ref LL_DMAMUX1_REQ_UART5_RX
- * @arg @ref LL_DMAMUX1_REQ_UART5_TX
- * @arg @ref LL_DMAMUX1_REQ_DAC1_CH1
- * @arg @ref LL_DMAMUX1_REQ_DAC1_CH2
- * @arg @ref LL_DMAMUX1_REQ_TIM6_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM7_UP
- * @arg @ref LL_DMAMUX1_REQ_USART6_RX
- * @arg @ref LL_DMAMUX1_REQ_USART6_TX
- * @arg @ref LL_DMAMUX1_REQ_I2C3_RX
- * @arg @ref LL_DMAMUX1_REQ_I2C3_TX
- * @arg @ref LL_DMAMUX1_REQ_DCMI_PSSI (*)
- * @arg @ref LL_DMAMUX1_REQ_CRYP_IN
- * @arg @ref LL_DMAMUX1_REQ_CRYP_OUT
- * @arg @ref LL_DMAMUX1_REQ_HASH_IN
- * @arg @ref LL_DMAMUX1_REQ_UART7_RX
- * @arg @ref LL_DMAMUX1_REQ_UART7_TX
- * @arg @ref LL_DMAMUX1_REQ_UART8_RX
- * @arg @ref LL_DMAMUX1_REQ_UART8_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI4_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI4_TX
- * @arg @ref LL_DMAMUX1_REQ_SPI5_RX
- * @arg @ref LL_DMAMUX1_REQ_SPI5_TX
- * @arg @ref LL_DMAMUX1_REQ_SAI1_A
- * @arg @ref LL_DMAMUX1_REQ_SAI1_B
- * @arg @ref LL_DMAMUX1_REQ_SAI2_A (*)
- * @arg @ref LL_DMAMUX1_REQ_SAI2_B (*)
- * @arg @ref LL_DMAMUX1_REQ_SWPMI_RX
- * @arg @ref LL_DMAMUX1_REQ_SWPMI_TX
- * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_DT
- * @arg @ref LL_DMAMUX1_REQ_SPDIF_RX_CS
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_MASTER (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_A (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_B (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_C (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_D (*)
- * @arg @ref LL_DMAMUX1_REQ_HRTIM_TIMER_E (*)
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT0
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT1
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT2
- * @arg @ref LL_DMAMUX1_REQ_DFSDM1_FLT3
- * @arg @ref LL_DMAMUX1_REQ_TIM15_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM15_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM15_TRIG
- * @arg @ref LL_DMAMUX1_REQ_TIM15_COM
- * @arg @ref LL_DMAMUX1_REQ_TIM16_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM16_UP
- * @arg @ref LL_DMAMUX1_REQ_TIM17_CH1
- * @arg @ref LL_DMAMUX1_REQ_TIM17_UP
- * @arg @ref LL_DMAMUX1_REQ_SAI3_A (*)
- * @arg @ref LL_DMAMUX1_REQ_SAI3_B (*)
- * @arg @ref LL_DMAMUX1_REQ_ADC3 (*)
- * @arg @ref LL_DMAMUX1_REQ_UART9_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_UART9_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_USART10_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_USART10_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_FMAC_READ (*)
- * @arg @ref LL_DMAMUX1_REQ_FMAC_WRITE (*)
- * @arg @ref LL_DMAMUX1_REQ_CORDIC_READ (*)
- * @arg @ref LL_DMAMUX1_REQ_CORDIC_WRITE(*)
- * @arg @ref LL_DMAMUX1_REQ_I2C5_RX (*)
- * @arg @ref LL_DMAMUX1_REQ_I2C5_TX (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH1 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH2 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH3 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_CH4 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_UP (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM23_TRIG (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH1 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH2 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH3 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_CH4 (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_UP (*)
- * @arg @ref LL_DMAMUX1_REQ_TIM24_TRIG (*)
- * @arg @ref LL_DMAMUX2_REQ_MEM2MEM
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR0
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR1
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR2
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR3
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR4
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR5
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR6
- * @arg @ref LL_DMAMUX2_REQ_GENERATOR7
- * @arg @ref LL_DMAMUX2_REQ_LPUART1_RX
- * @arg @ref LL_DMAMUX2_REQ_LPUART1_TX
- * @arg @ref LL_DMAMUX2_REQ_SPI6_RX
- * @arg @ref LL_DMAMUX2_REQ_SPI6_TX
- * @arg @ref LL_DMAMUX2_REQ_I2C4_RX
- * @arg @ref LL_DMAMUX2_REQ_I2C4_TX
- * @arg @ref LL_DMAMUX2_REQ_SAI4_A (*)
- * @arg @ref LL_DMAMUX2_REQ_SAI4_B (*)
- * @arg @ref LL_DMAMUX2_REQ_ADC3 (*)
- * @arg @ref LL_DMAMUX2_REQ_DAC2_CH1 (*)
- * @arg @ref LL_DMAMUX2_REQ_DFSDM2_FLT0 (*)
- *
- * @note (*) Availability depends on devices.
- * @retval None
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetRequestID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_DMAREQ_ID));
- }
- /**
- * @brief Set the number of DMA request that will be autorized after a synchronization event and/or the number of DMA request needed to generate an event.
- * @rmtoll CxCR NBREQ LL_DMAMUX_SetSyncRequestNb
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @param RequestNb This parameter must be a value between Min_Data = 1 and Max_Data = 32.
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetSyncRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t RequestNb)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_NBREQ, (RequestNb - 1U) << DMAMUX_CxCR_NBREQ_Pos);
- }
- /**
- * @brief Get the number of DMA request that will be autorized after a synchronization event and/or the number of DMA request needed to generate an event.
- * @rmtoll CxCR NBREQ LL_DMAMUX_GetSyncRequestNb
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval Between Min_Data = 1 and Max_Data = 32
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetSyncRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_NBREQ) >> DMAMUX_CxCR_NBREQ_Pos) + 1U);
- }
- /**
- * @brief Set the polarity of the signal on which the DMA request is synchronized.
- * @rmtoll CxCR SPOL LL_DMAMUX_SetSyncPolarity
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @param Polarity This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_SYNC_NO_EVENT
- * @arg @ref LL_DMAMUX_SYNC_POL_RISING
- * @arg @ref LL_DMAMUX_SYNC_POL_FALLING
- * @arg @ref LL_DMAMUX_SYNC_POL_RISING_FALLING
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetSyncPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t Polarity)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SPOL, Polarity);
- }
- /**
- * @brief Get the polarity of the signal on which the DMA request is synchronized.
- * @rmtoll CxCR SPOL LL_DMAMUX_GetSyncPolarity
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_DMAMUX_SYNC_NO_EVENT
- * @arg @ref LL_DMAMUX_SYNC_POL_RISING
- * @arg @ref LL_DMAMUX_SYNC_POL_FALLING
- * @arg @ref LL_DMAMUX_SYNC_POL_RISING_FALLING
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetSyncPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SPOL));
- }
- /**
- * @brief Enable the Event Generation on DMAMUX channel x.
- * @rmtoll CxCR EGE LL_DMAMUX_EnableEventGeneration
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_EnableEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE);
- }
- /**
- * @brief Disable the Event Generation on DMAMUX channel x.
- * @rmtoll CxCR EGE LL_DMAMUX_DisableEventGeneration
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_DisableEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- CLEAR_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE);
- }
- /**
- * @brief Check if the Event Generation on DMAMUX channel x is enabled or disabled.
- * @rmtoll CxCR EGE LL_DMAMUX_IsEnabledEventGeneration
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledEventGeneration(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_EGE) == (DMAMUX_CxCR_EGE)) ? 1UL : 0UL);
- }
- /**
- * @brief Enable the synchronization mode.
- * @rmtoll CxCR SE LL_DMAMUX_EnableSync
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_EnableSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE);
- }
- /**
- * @brief Disable the synchronization mode.
- * @rmtoll CxCR SE LL_DMAMUX_DisableSync
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_DisableSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- CLEAR_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE);
- }
- /**
- * @brief Check if the synchronization mode is enabled or disabled.
- * @rmtoll CxCR SE LL_DMAMUX_IsEnabledSync
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledSync(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SE) == (DMAMUX_CxCR_SE)) ? 1UL : 0UL);
- }
- /**
- * @brief Set DMAMUX synchronization ID on DMAMUX Channel x.
- * @rmtoll CxCR SYNC_ID LL_DMAMUX_SetSyncID
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @param SyncID This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX1_SYNC_EXTI0
- * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT
- * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_EXTI0
- * @arg @ref LL_DMAMUX2_SYNC_EXTI2
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetSyncID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel, uint32_t SyncID)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SYNC_ID, SyncID);
- }
- /**
- * @brief Get DMAMUX synchronization ID on DMAMUX Channel x.
- * @rmtoll CxCR SYNC_ID LL_DMAMUX_GetSyncID
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX1_SYNC_EXTI0
- * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT
- * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_EXTI0
- * @arg @ref LL_DMAMUX2_SYNC_EXTI2
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetSyncID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)(READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SYNC_ID));
- }
- /**
- * @brief Enable the Request Generator.
- * @rmtoll RGxCR GE LL_DMAMUX_EnableRequestGen
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_EnableRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * (RequestGenChannel))))->RGCR, DMAMUX_RGxCR_GE);
- }
- /**
- * @brief Disable the Request Generator.
- * @rmtoll RGxCR GE LL_DMAMUX_DisableRequestGen
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_DisableRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- CLEAR_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * (RequestGenChannel))))->RGCR, DMAMUX_RGxCR_GE);
- }
- /**
- * @brief Check if the Request Generator is enabled or disabled.
- * @rmtoll RGxCR GE LL_DMAMUX_IsEnabledRequestGen
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledRequestGen(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GE) == (DMAMUX_RGxCR_GE)) ? 1UL : 0UL);
- }
- /**
- * @brief Set the polarity of the signal on which the DMA request is generated.
- * @rmtoll RGxCR GPOL LL_DMAMUX_SetRequestGenPolarity
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @param Polarity This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_NO_EVENT
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_FALLING
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING_FALLING
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetRequestGenPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t Polarity)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GPOL, Polarity);
- }
- /**
- * @brief Get the polarity of the signal on which the DMA request is generated.
- * @rmtoll RGxCR GPOL LL_DMAMUX_GetRequestGenPolarity
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_NO_EVENT
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_FALLING
- * @arg @ref LL_DMAMUX_REQ_GEN_POL_RISING_FALLING
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetRequestGenPolarity(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)(READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GPOL));
- }
- /**
- * @brief Set the number of DMA request that will be autorized after a generation event.
- * @note This field can only be written when Generator is disabled.
- * @rmtoll RGxCR GNBREQ LL_DMAMUX_SetGenRequestNb
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @param RequestNb This parameter must be a value between Min_Data = 1 and Max_Data = 32.
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetGenRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t RequestNb)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GNBREQ, (RequestNb - 1U) << DMAMUX_RGxCR_GNBREQ_Pos);
- }
- /**
- * @brief Get the number of DMA request that will be autorized after a generation event.
- * @rmtoll RGxCR GNBREQ LL_DMAMUX_GetGenRequestNb
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval Between Min_Data = 1 and Max_Data = 32
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetGenRequestNb(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_GNBREQ) >> DMAMUX_RGxCR_GNBREQ_Pos) + 1U);
- }
- /**
- * @brief Set DMAMUX external Request Signal ID on DMAMUX Request Generation Trigger Event Channel x.
- * @rmtoll RGxCR SIG_ID LL_DMAMUX_SetRequestSignalID
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @param RequestSignalID This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH0_EVT
- * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH1_EVT
- * @arg @ref LL_DMAMUX1_REQ_GEN_DMAMUX1_CH2_EVT
- * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM1_OUT
- * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM2_OUT
- * @arg @ref LL_DMAMUX1_REQ_GEN_LPTIM3_OUT
- * @arg @ref LL_DMAMUX1_REQ_GEN_EXTI0
- * @arg @ref LL_DMAMUX1_REQ_GEN_TIM12_TRGO
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH0_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH1_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH2_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH3_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH4_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH5_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_DMAMUX2_CH6_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_RX_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_TX_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM2_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM2_OUT
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM3_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM3_OUT
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM4_WKUP (*)
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPTIM5_WKUP (*)
- * @arg @ref LL_DMAMUX2_REQ_GEN_I2C4_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_SPI6_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_COMP1_OUT
- * @arg @ref LL_DMAMUX2_REQ_GEN_COMP2_OUT
- * @arg @ref LL_DMAMUX2_REQ_GEN_RTC_WKUP
- * @arg @ref LL_DMAMUX2_REQ_GEN_EXTI0
- * @arg @ref LL_DMAMUX2_REQ_GEN_EXTI2
- * @arg @ref LL_DMAMUX2_REQ_GEN_I2C4_IT_EVT
- * @arg @ref LL_DMAMUX2_REQ_GEN_SPI6_IT
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_TX_IT
- * @arg @ref LL_DMAMUX2_REQ_GEN_LPUART1_RX_IT
- * @arg @ref LL_DMAMUX2_REQ_GEN_ADC3_IT (*)
- * @arg @ref LL_DMAMUX2_REQ_GEN_ADC3_AWD1_OUT (*)
- * @arg @ref LL_DMAMUX2_REQ_GEN_BDMA_CH0_IT
- * @arg @ref LL_DMAMUX2_REQ_GEN_BDMA_CH1_IT
- * @note (*) Availability depends on devices.
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_SetRequestSignalID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel, uint32_t RequestSignalID)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- MODIFY_REG(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_SIG_ID, RequestSignalID);
- }
- /**
- * @brief Get DMAMUX external Request Signal ID set on DMAMUX Channel x.
- * @rmtoll RGxCR SIG_ID LL_DMAMUX_GetRequestSignalID
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval Returned value can be one of the following values:
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH0_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH1_EVT
- * @arg @ref LL_DMAMUX1_SYNC_DMAMUX1_CH2_EVT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM1_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX1_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX1_SYNC_EXTI0
- * @arg @ref LL_DMAMUX1_SYNC_TIM12_TRGO
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH0_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH1_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH2_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH3_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH4_EVT
- * @arg @ref LL_DMAMUX2_SYNC_DMAMUX2_CH5_EVT
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_RX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPUART1_TX_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM2_OUT
- * @arg @ref LL_DMAMUX2_SYNC_LPTIM3_OUT
- * @arg @ref LL_DMAMUX2_SYNC_I2C4_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_SPI6_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_COMP1_OUT
- * @arg @ref LL_DMAMUX2_SYNC_RTC_WKUP
- * @arg @ref LL_DMAMUX2_SYNC_EXTI0
- * @arg @ref LL_DMAMUX2_SYNC_EXTI2
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_GetRequestSignalID(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (uint32_t)(READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_SIG_ID));
- }
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EF_FLAG_Management FLAG_Management
- * @{
- */
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 0.
- * @rmtoll CSR SOF0 LL_DMAMUX_IsActiveFlag_SO0
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO0(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF0) == (DMAMUX_CSR_SOF0)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 1.
- * @rmtoll CSR SOF1 LL_DMAMUX_IsActiveFlag_SO1
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO1(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF1) == (DMAMUX_CSR_SOF1)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 2.
- * @rmtoll CSR SOF2 LL_DMAMUX_IsActiveFlag_SO2
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO2(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF2) == (DMAMUX_CSR_SOF2)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 3.
- * @rmtoll CSR SOF3 LL_DMAMUX_IsActiveFlag_SO3
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO3(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF3) == (DMAMUX_CSR_SOF3)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 4.
- * @rmtoll CSR SOF4 LL_DMAMUX_IsActiveFlag_SO4
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO4(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF4) == (DMAMUX_CSR_SOF4)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 5.
- * @rmtoll CSR SOF5 LL_DMAMUX_IsActiveFlag_SO5
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO5(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF5) == (DMAMUX_CSR_SOF5)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 6.
- * @rmtoll CSR SOF6 LL_DMAMUX_IsActiveFlag_SO6
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO6(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF6) == (DMAMUX_CSR_SOF6)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 7.
- * @rmtoll CSR SOF7 LL_DMAMUX_IsActiveFlag_SO7
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO7(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF7) == (DMAMUX_CSR_SOF7)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 8.
- * @rmtoll CSR SOF8 LL_DMAMUX_IsActiveFlag_SO8
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO8(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF8) == (DMAMUX_CSR_SOF8)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 9.
- * @rmtoll CSR SOF9 LL_DMAMUX_IsActiveFlag_SO9
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO9(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF9) == (DMAMUX_CSR_SOF9)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 10.
- * @rmtoll CSR SOF10 LL_DMAMUX_IsActiveFlag_SO10
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO10(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF10) == (DMAMUX_CSR_SOF10)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 11.
- * @rmtoll CSR SOF11 LL_DMAMUX_IsActiveFlag_SO11
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO11(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF11) == (DMAMUX_CSR_SOF11)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 12.
- * @rmtoll CSR SOF12 LL_DMAMUX_IsActiveFlag_SO12
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO12(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF12) == (DMAMUX_CSR_SOF12)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 13.
- * @rmtoll CSR SOF13 LL_DMAMUX_IsActiveFlag_SO13
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO13(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF13) == (DMAMUX_CSR_SOF13)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 14.
- * @rmtoll CSR SOF14 LL_DMAMUX_IsActiveFlag_SO14
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO14(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF14) == (DMAMUX_CSR_SOF14)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Synchronization Event Overrun Flag Channel 15.
- * @rmtoll CSR SOF15 LL_DMAMUX_IsActiveFlag_SO15
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_SO15(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CSR, DMAMUX_CSR_SOF15) == (DMAMUX_CSR_SOF15)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 0 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF0 LL_DMAMUX_IsActiveFlag_RGO0
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO0(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF0) == (DMAMUX_RGSR_OF0)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 1 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF1 LL_DMAMUX_IsActiveFlag_RGO1
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO1(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF1) == (DMAMUX_RGSR_OF1)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 2 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF2 LL_DMAMUX_IsActiveFlag_RGO2
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO2(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF2) == (DMAMUX_RGSR_OF2)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 3 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF3 LL_DMAMUX_IsActiveFlag_RGO3
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO3(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF3) == (DMAMUX_RGSR_OF3)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 4 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF4 LL_DMAMUX_IsActiveFlag_RGO4
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO4(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF4) == (DMAMUX_RGSR_OF4)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 5 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF5 LL_DMAMUX_IsActiveFlag_RGO5
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO5(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF5) == (DMAMUX_RGSR_OF5)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 6 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF6 LL_DMAMUX_IsActiveFlag_RGO6
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO6(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF6) == (DMAMUX_RGSR_OF6)) ? 1UL : 0UL);
- }
- /**
- * @brief Get Request Generator 7 Trigger Event Overrun Flag.
- * @rmtoll RGSR OF7 LL_DMAMUX_IsActiveFlag_RGO7
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsActiveFlag_RGO7(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGSR, DMAMUX_RGSR_OF7) == (DMAMUX_RGSR_OF7)) ? 1UL : 0UL);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 0.
- * @rmtoll CFR CSOF0 LL_DMAMUX_ClearFlag_SO0
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO0(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF0);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 1.
- * @rmtoll CFR CSOF1 LL_DMAMUX_ClearFlag_SO1
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO1(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF1);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 2.
- * @rmtoll CFR CSOF2 LL_DMAMUX_ClearFlag_SO2
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO2(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF2);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 3.
- * @rmtoll CFR CSOF3 LL_DMAMUX_ClearFlag_SO3
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO3(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF3);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 4.
- * @rmtoll CFR CSOF4 LL_DMAMUX_ClearFlag_SO4
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO4(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF4);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 5.
- * @rmtoll CFR CSOF5 LL_DMAMUX_ClearFlag_SO5
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO5(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF5);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 6.
- * @rmtoll CFR CSOF6 LL_DMAMUX_ClearFlag_SO6
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO6(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF6);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 7.
- * @rmtoll CFR CSOF7 LL_DMAMUX_ClearFlag_SO7
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO7(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF7);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 8.
- * @rmtoll CFR CSOF8 LL_DMAMUX_ClearFlag_SO8
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO8(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF8);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 9.
- * @rmtoll CFR CSOF9 LL_DMAMUX_ClearFlag_SO9
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO9(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF9);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 10.
- * @rmtoll CFR CSOF10 LL_DMAMUX_ClearFlag_SO10
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO10(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF10);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 11.
- * @rmtoll CFR CSOF11 LL_DMAMUX_ClearFlag_SO11
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO11(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF11);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 12.
- * @rmtoll CFR CSOF12 LL_DMAMUX_ClearFlag_SO12
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO12(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF12);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 13.
- * @rmtoll CFR CSOF13 LL_DMAMUX_ClearFlag_SO13
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO13(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF13);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 14.
- * @rmtoll CFR CSOF14 LL_DMAMUX_ClearFlag_SO14
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO14(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF14);
- }
- /**
- * @brief Clear Synchronization Event Overrun Flag Channel 15.
- * @rmtoll CFR CSOF15 LL_DMAMUX_ClearFlag_SO15
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_SO15(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_ChannelStatus_TypeDef *)(dmamux_base_addr + DMAMUX_CH_STATUS_OFFSET))->CFR, DMAMUX_CFR_CSOF15);
- }
- /**
- * @brief Clear Request Generator 0 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF0 LL_DMAMUX_ClearFlag_RGO0
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO0(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF0);
- }
- /**
- * @brief Clear Request Generator 1 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF1 LL_DMAMUX_ClearFlag_RGO1
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO1(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF1);
- }
- /**
- * @brief Clear Request Generator 2 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF2 LL_DMAMUX_ClearFlag_RGO2
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO2(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF2);
- }
- /**
- * @brief Clear Request Generator 3 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF3 LL_DMAMUX_ClearFlag_RGO3
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO3(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF3);
- }
- /**
- * @brief Clear Request Generator 4 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF4 LL_DMAMUX_ClearFlag_RGO4
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO4(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF4);
- }
- /**
- * @brief Clear Request Generator 5 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF5 LL_DMAMUX_ClearFlag_RGO5
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO5(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF5);
- }
- /**
- * @brief Clear Request Generator 6 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF6 LL_DMAMUX_ClearFlag_RGO6
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO6(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF6);
- }
- /**
- * @brief Clear Request Generator 7 Trigger Event Overrun Flag.
- * @rmtoll RGCFR COF7 LL_DMAMUX_ClearFlag_RGO7
- * @param DMAMUXx DMAMUXx DMAMUXx Instance
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_ClearFlag_RGO7(DMAMUX_Channel_TypeDef *DMAMUXx)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGenStatus_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_STATUS_OFFSET))->RGCFR, DMAMUX_RGCFR_COF7);
- }
- /**
- * @}
- */
- /** @defgroup DMAMUX_LL_EF_IT_Management IT_Management
- * @{
- */
- /**
- * @brief Enable the Synchronization Event Overrun Interrupt on DMAMUX channel x.
- * @rmtoll CxCR SOIE LL_DMAMUX_EnableIT_SO
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_EnableIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_Channel_TypeDef *)((uint32_t)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel)))))->CCR, DMAMUX_CxCR_SOIE);
- }
- /**
- * @brief Disable the Synchronization Event Overrun Interrupt on DMAMUX channel x.
- * @rmtoll CxCR SOIE LL_DMAMUX_DisableIT_SO
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_DisableIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- CLEAR_BIT(((DMAMUX_Channel_TypeDef *)((uint32_t)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel)))))->CCR, DMAMUX_CxCR_SOIE);
- }
- /**
- * @brief Check if the Synchronization Event Overrun Interrupt on DMAMUX channel x is enabled or disabled.
- * @rmtoll CxCR SOIE LL_DMAMUX_IsEnabledIT_SO
- * @param DMAMUXx DMAMUXx Instance
- * @param Channel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_CHANNEL_0
- * @arg @ref LL_DMAMUX_CHANNEL_1
- * @arg @ref LL_DMAMUX_CHANNEL_2
- * @arg @ref LL_DMAMUX_CHANNEL_3
- * @arg @ref LL_DMAMUX_CHANNEL_4
- * @arg @ref LL_DMAMUX_CHANNEL_5
- * @arg @ref LL_DMAMUX_CHANNEL_6
- * @arg @ref LL_DMAMUX_CHANNEL_7
- * @arg @ref LL_DMAMUX_CHANNEL_8
- * @arg @ref LL_DMAMUX_CHANNEL_9
- * @arg @ref LL_DMAMUX_CHANNEL_10
- * @arg @ref LL_DMAMUX_CHANNEL_11
- * @arg @ref LL_DMAMUX_CHANNEL_12
- * @arg @ref LL_DMAMUX_CHANNEL_13
- * @arg @ref LL_DMAMUX_CHANNEL_14
- * @arg @ref LL_DMAMUX_CHANNEL_15
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledIT_SO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t Channel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return (READ_BIT(((DMAMUX_Channel_TypeDef *)(dmamux_base_addr + (DMAMUX_CCR_SIZE * (Channel))))->CCR, DMAMUX_CxCR_SOIE));
- }
- /**
- * @brief Enable the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x.
- * @rmtoll RGxCR OIE LL_DMAMUX_EnableIT_RGO
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_EnableIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- SET_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE);
- }
- /**
- * @brief Disable the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x.
- * @rmtoll RGxCR OIE LL_DMAMUX_DisableIT_RGO
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval None
- */
- __STATIC_INLINE void LL_DMAMUX_DisableIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- CLEAR_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE);
- }
- /**
- * @brief Check if the Request Generation Trigger Event Overrun Interrupt on DMAMUX channel x is enabled or disabled.
- * @rmtoll RGxCR OIE LL_DMAMUX_IsEnabledIT_RGO
- * @param DMAMUXx DMAMUXx Instance
- * @param RequestGenChannel This parameter can be one of the following values:
- * @arg @ref LL_DMAMUX_REQ_GEN_0
- * @arg @ref LL_DMAMUX_REQ_GEN_1
- * @arg @ref LL_DMAMUX_REQ_GEN_2
- * @arg @ref LL_DMAMUX_REQ_GEN_3
- * @arg @ref LL_DMAMUX_REQ_GEN_4
- * @arg @ref LL_DMAMUX_REQ_GEN_5
- * @arg @ref LL_DMAMUX_REQ_GEN_6
- * @arg @ref LL_DMAMUX_REQ_GEN_7
- * @retval State of bit (1 or 0).
- */
- __STATIC_INLINE uint32_t LL_DMAMUX_IsEnabledIT_RGO(DMAMUX_Channel_TypeDef *DMAMUXx, uint32_t RequestGenChannel)
- {
- uint32_t dmamux_base_addr = (uint32_t)DMAMUXx;
- return ((READ_BIT(((DMAMUX_RequestGen_TypeDef *)(dmamux_base_addr + DMAMUX_REQ_GEN_OFFSET + (DMAMUX_RGCR_SIZE * RequestGenChannel)))->RGCR, DMAMUX_RGxCR_OIE) == (DMAMUX_RGxCR_OIE)) ? 1UL : 0UL);
- }
- /**
- * @}
- */
- /**
- * @}
- */
- /**
- * @}
- */
- #endif /* DMAMUX1 || DMAMUX2 */
- /**
- * @}
- */
- #ifdef __cplusplus
- }
- #endif
- #endif /* __STM32H7xx_LL_DMAMUX_H */
|