Lines Matching refs:index
193 static inline bool MU_IsTxEmpty(MU_Type * base, uint32_t index) in MU_IsTxEmpty() argument
195 return (bool)(base->SR & (MU_SR_TE0_MASK >> index)); in MU_IsTxEmpty()
212 static inline void MU_EnableTxEmptyInt(MU_Type * base, uint32_t index) in MU_EnableTxEmptyInt() argument
215 | (MU_CR_TIE0_MASK>>index); // Set TIEn in MU_EnableTxEmptyInt()
232 static inline void MU_DisableTxEmptyInt(MU_Type * base, uint32_t index) in MU_DisableTxEmptyInt() argument
234 base->CR &= ~(MU_CR_GIRn_MASK | (MU_CR_TIE0_MASK>>index)); // Clear GIRn , clear TIEn in MU_DisableTxEmptyInt()
279 static inline bool MU_IsRxFull(MU_Type * base, uint32_t index) in MU_IsRxFull() argument
281 return (bool)(base->SR & (MU_SR_RF0_MASK >> index)); in MU_IsRxFull()
298 static inline void MU_EnableRxFullInt(MU_Type * base, uint32_t index) in MU_EnableRxFullInt() argument
301 | (MU_CR_RIE0_MASK>>index); // Set RIEn in MU_EnableRxFullInt()
318 static inline void MU_DisableRxFullInt(MU_Type * base, uint32_t index) in MU_DisableRxFullInt() argument
320 base->CR &= ~(MU_CR_GIRn_MASK | (MU_CR_RIE0_MASK>>index)); // Clear GIRn, clear RIEn in MU_DisableRxFullInt()
344 static inline void MU_EnableGeneralInt(MU_Type * base, uint32_t index) in MU_EnableGeneralInt() argument
347 | (MU_CR_GIE0_MASK>>index); // Set GIEn in MU_EnableGeneralInt()
364 static inline void MU_DisableGeneralInt(MU_Type * base, uint32_t index) in MU_DisableGeneralInt() argument
366 base->CR &= ~(MU_CR_GIRn_MASK | (MU_CR_GIE0_MASK>>index)); // Clear GIRn, clear GIEn in MU_DisableGeneralInt()
379 static inline bool MU_IsGeneralIntPending(MU_Type * base, uint32_t index) in MU_IsGeneralIntPending() argument
381 return (bool)(base->SR & (MU_SR_GIP0_MASK >> index)); in MU_IsGeneralIntPending()
392 static inline void MU_ClearGeneralIntPending(MU_Type * base, uint32_t index) in MU_ClearGeneralIntPending() argument
394 base->SR = (MU_SR_GIP0_MASK >> index); in MU_ClearGeneralIntPending()
413 mu_status_t MU_TriggerGeneralInt(MU_Type * base, uint32_t index);
426 static inline bool MU_IsGeneralIntAccepted(MU_Type * base, uint32_t index) in MU_IsGeneralIntAccepted() argument
428 return !(bool)(base->CR & (MU_CR_GIR0_MASK >> index)); in MU_IsGeneralIntAccepted()