Lines Matching refs:p_reg
156 NRF_STATIC_INLINE void nrf_usbd_task_trigger(NRF_USBD_Type * p_reg, nrf_usbd_task_t task);
166 NRF_STATIC_INLINE uint32_t nrf_usbd_task_address_get(NRF_USBD_Type const * p_reg,
175 NRF_STATIC_INLINE void nrf_usbd_event_clear(NRF_USBD_Type * p_reg, nrf_usbd_event_t event);
186 NRF_STATIC_INLINE bool nrf_usbd_event_check(NRF_USBD_Type const * p_reg, nrf_usbd_event_t event);
199 NRF_STATIC_INLINE bool nrf_usbd_event_get_and_clear(NRF_USBD_Type * p_reg, nrf_usbd_event_t event);
209 NRF_STATIC_INLINE uint32_t nrf_usbd_event_address_get(NRF_USBD_Type const * p_reg,
218 NRF_STATIC_INLINE void nrf_usbd_shorts_enable(NRF_USBD_Type * p_reg, uint32_t mask);
226 NRF_STATIC_INLINE void nrf_usbd_shorts_disable(NRF_USBD_Type * p_reg, uint32_t mask);
237 NRF_STATIC_INLINE uint32_t nrf_usbd_shorts_get(NRF_USBD_Type const * p_reg);
246 NRF_STATIC_INLINE void nrf_usbd_int_enable(NRF_USBD_Type * p_reg, uint32_t mask);
257 NRF_STATIC_INLINE uint32_t nrf_usbd_int_enable_check(NRF_USBD_Type const * p_reg, uint32_t mask);
266 NRF_STATIC_INLINE uint32_t nrf_usbd_int_enable_get(NRF_USBD_Type const * p_reg);
275 NRF_STATIC_INLINE void nrf_usbd_int_disable(NRF_USBD_Type * p_reg, uint32_t mask);
297 NRF_STATIC_INLINE volatile uint32_t* nrf_usbd_getRegPtr(NRF_USBD_Type * p_reg, uint32_t offset) in nrf_usbd_getRegPtr() argument
299 return (volatile uint32_t*)(((uint8_t *)p_reg) + (uint32_t)offset); in nrf_usbd_getRegPtr()
312 NRF_STATIC_INLINE volatile const uint32_t* nrf_usbd_getRegPtr_c(NRF_USBD_Type const * p_reg, in nrf_usbd_getRegPtr_c() argument
315 return (volatile const uint32_t*)(((uint8_t const *)p_reg) + (uint32_t)offset); in nrf_usbd_getRegPtr_c()
322 NRF_STATIC_INLINE void nrf_usbd_task_trigger(NRF_USBD_Type * p_reg, nrf_usbd_task_t task) in nrf_usbd_task_trigger() argument
324 *(nrf_usbd_getRegPtr(p_reg, (uint32_t)task)) = 1UL; in nrf_usbd_task_trigger()
325 (void)*(nrf_usbd_getRegPtr(p_reg, (uint32_t)task)); in nrf_usbd_task_trigger()
328 NRF_STATIC_INLINE uint32_t nrf_usbd_task_address_get(NRF_USBD_Type const * p_reg, in nrf_usbd_task_address_get() argument
331 return (uint32_t)nrf_usbd_getRegPtr_c(p_reg, (uint32_t)task); in nrf_usbd_task_address_get()
334 NRF_STATIC_INLINE void nrf_usbd_event_clear(NRF_USBD_Type * p_reg, nrf_usbd_event_t event) in nrf_usbd_event_clear() argument
336 *(nrf_usbd_getRegPtr(p_reg, (uint32_t)event)) = 0UL; in nrf_usbd_event_clear()
337 (void)*(nrf_usbd_getRegPtr(p_reg, (uint32_t)event)); in nrf_usbd_event_clear()
340 NRF_STATIC_INLINE bool nrf_usbd_event_check(NRF_USBD_Type const * p_reg, nrf_usbd_event_t event) in nrf_usbd_event_check() argument
342 return (bool)*nrf_usbd_getRegPtr_c(p_reg, (uint32_t)event); in nrf_usbd_event_check()
345 NRF_STATIC_INLINE bool nrf_usbd_event_get_and_clear(NRF_USBD_Type * p_reg, nrf_usbd_event_t event) in nrf_usbd_event_get_and_clear() argument
347 bool ret = nrf_usbd_event_check(p_reg, event); in nrf_usbd_event_get_and_clear()
350 nrf_usbd_event_clear(p_reg, event); in nrf_usbd_event_get_and_clear()
355 NRF_STATIC_INLINE uint32_t nrf_usbd_event_address_get(NRF_USBD_Type const * p_reg, in nrf_usbd_event_address_get() argument
358 return (uint32_t)nrf_usbd_getRegPtr_c(p_reg, (uint32_t)event); in nrf_usbd_event_address_get()
361 NRF_STATIC_INLINE void nrf_usbd_shorts_enable(NRF_USBD_Type * p_reg, uint32_t mask) in nrf_usbd_shorts_enable() argument
363 p_reg->SHORTS |= mask; in nrf_usbd_shorts_enable()
366 NRF_STATIC_INLINE void nrf_usbd_shorts_disable(NRF_USBD_Type * p_reg, uint32_t mask) in nrf_usbd_shorts_disable() argument
371 p_reg->SHORTS = 0; in nrf_usbd_shorts_disable()
375 p_reg->SHORTS &= ~mask; in nrf_usbd_shorts_disable()
379 NRF_STATIC_INLINE uint32_t nrf_usbd_shorts_get(NRF_USBD_Type const * p_reg) in nrf_usbd_shorts_get() argument
381 return p_reg->SHORTS; in nrf_usbd_shorts_get()
384 NRF_STATIC_INLINE void nrf_usbd_int_enable(NRF_USBD_Type * p_reg, uint32_t mask) in nrf_usbd_int_enable() argument
386 p_reg->INTENSET = mask; in nrf_usbd_int_enable()
389 NRF_STATIC_INLINE uint32_t nrf_usbd_int_enable_check(NRF_USBD_Type const * p_reg, uint32_t mask) in nrf_usbd_int_enable_check() argument
391 return p_reg->INTENSET & mask; in nrf_usbd_int_enable_check()
394 NRF_STATIC_INLINE uint32_t nrf_usbd_int_enable_get(NRF_USBD_Type const * p_reg) in nrf_usbd_int_enable_get() argument
396 return p_reg->INTENSET; in nrf_usbd_int_enable_get()
399 NRF_STATIC_INLINE void nrf_usbd_int_disable(NRF_USBD_Type * p_reg, uint32_t mask) in nrf_usbd_int_disable() argument
401 p_reg->INTENCLR = mask; in nrf_usbd_int_disable()
638 NRF_STATIC_INLINE void nrf_usbd_enable(NRF_USBD_Type * p_reg);
645 NRF_STATIC_INLINE void nrf_usbd_disable(NRF_USBD_Type * p_reg);
654 NRF_STATIC_INLINE uint32_t nrf_usbd_eventcause_get(NRF_USBD_Type const * p_reg);
662 NRF_STATIC_INLINE void nrf_usbd_eventcause_clear(NRF_USBD_Type * p_reg, uint32_t flags);
674 NRF_STATIC_INLINE uint32_t nrf_usbd_eventcause_get_and_clear(NRF_USBD_Type * p_reg);
687 NRF_STATIC_INLINE uint32_t nrf_usbd_halted_get(NRF_USBD_Type const * p_reg, uint8_t ep);
703 NRF_STATIC_INLINE bool nrf_usbd_ep_is_stall(NRF_USBD_Type const * p_reg, uint8_t ep);
712 NRF_STATIC_INLINE uint32_t nrf_usbd_epstatus_get(NRF_USBD_Type const * p_reg);
720 NRF_STATIC_INLINE void nrf_usbd_epstatus_clear(NRF_USBD_Type * p_reg, uint32_t flags);
731 NRF_STATIC_INLINE uint32_t nrf_usbd_epstatus_get_and_clear(NRF_USBD_Type * p_reg);
740 NRF_STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get(NRF_USBD_Type const * p_reg);
748 NRF_STATIC_INLINE void nrf_usbd_epdatastatus_clear(NRF_USBD_Type * p_reg, uint32_t flags);
759 NRF_STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get_and_clear(NRF_USBD_Type * p_reg);
774 NRF_STATIC_INLINE uint8_t nrf_usbd_setup_bmrequesttype_get(NRF_USBD_Type const * p_reg);
783 NRF_STATIC_INLINE uint8_t nrf_usbd_setup_brequest_get(NRF_USBD_Type const * p_reg);
792 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_wvalue_get(NRF_USBD_Type const * p_reg);
801 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_windex_get(NRF_USBD_Type const * p_reg);
810 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_wlength_get(NRF_USBD_Type const * p_reg);
826 NRF_STATIC_INLINE size_t nrf_usbd_epout_size_get(NRF_USBD_Type const * p_reg, uint8_t ep);
836 NRF_STATIC_INLINE size_t nrf_usbd_episoout_size_get(NRF_USBD_Type const * p_reg, uint8_t ep);
844 NRF_STATIC_INLINE void nrf_usbd_epout_clear(NRF_USBD_Type * p_reg, uint8_t ep);
851 NRF_STATIC_INLINE void nrf_usbd_pullup_enable(NRF_USBD_Type * p_reg);
858 NRF_STATIC_INLINE void nrf_usbd_pullup_disable(NRF_USBD_Type * p_reg);
868 NRF_STATIC_INLINE bool nrf_usbd_pullup_check(NRF_USBD_Type const * p_reg);
880 NRF_STATIC_INLINE void nrf_usbd_dpdmvalue_set(NRF_USBD_Type * p_reg, nrf_usbd_dpdmvalue_t val);
891 NRF_STATIC_INLINE void nrf_usbd_dtoggle_set(NRF_USBD_Type * p_reg,
906 NRF_STATIC_INLINE nrf_usbd_dtoggle_t nrf_usbd_dtoggle_get(NRF_USBD_Type * p_reg, uint8_t ep);
917 NRF_STATIC_INLINE bool nrf_usbd_ep_enable_check(NRF_USBD_Type const * p_reg, uint8_t ep);
927 NRF_STATIC_INLINE void nrf_usbd_ep_enable(NRF_USBD_Type * p_reg, uint8_t ep);
937 NRF_STATIC_INLINE void nrf_usbd_ep_disable(NRF_USBD_Type * p_reg, uint8_t ep);
944 NRF_STATIC_INLINE void nrf_usbd_ep_all_disable(NRF_USBD_Type * p_reg);
955 NRF_STATIC_INLINE void nrf_usbd_ep_default_config(NRF_USBD_Type * p_reg);
965 NRF_STATIC_INLINE void nrf_usbd_ep_stall(NRF_USBD_Type * p_reg, uint8_t ep);
975 NRF_STATIC_INLINE void nrf_usbd_ep_unstall(NRF_USBD_Type * p_reg, uint8_t ep);
985 NRF_STATIC_INLINE void nrf_usbd_isosplit_set(NRF_USBD_Type * p_reg, nrf_usbd_isosplit_t split);
996 NRF_STATIC_INLINE nrf_usbd_isosplit_t nrf_usbd_isosplit_get(NRF_USBD_Type const * p_reg);
1005 NRF_STATIC_INLINE uint32_t nrf_usbd_framecntr_get(NRF_USBD_Type const * p_reg);
1018 NRF_STATIC_INLINE void nrf_usbd_lowpower_enable(NRF_USBD_Type * p_reg);
1032 NRF_STATIC_INLINE void nrf_usbd_lowpower_disable(NRF_USBD_Type * p_reg);
1042 NRF_STATIC_INLINE bool nrf_usbd_lowpower_check(NRF_USBD_Type const * p_reg);
1050 NRF_STATIC_INLINE void nrf_usbd_isoinconfig_set(NRF_USBD_Type * p_reg,
1060 NRF_STATIC_INLINE nrf_usbd_isoinconfig_t nrf_usbd_isoinconfig_get(NRF_USBD_Type const * p_reg);
1072 NRF_STATIC_INLINE void nrf_usbd_ep_easydma_set(NRF_USBD_Type * p_reg,
1087 NRF_STATIC_INLINE uint32_t nrf_usbd_ep_amount_get(NRF_USBD_Type const * p_reg, uint8_t ep);
1092 NRF_STATIC_INLINE void nrf_usbd_enable(NRF_USBD_Type * p_reg) in nrf_usbd_enable() argument
1094 p_reg->ENABLE = USBD_ENABLE_ENABLE_Enabled << USBD_ENABLE_ENABLE_Pos; in nrf_usbd_enable()
1095 (void) p_reg->ENABLE; in nrf_usbd_enable()
1098 NRF_STATIC_INLINE void nrf_usbd_disable(NRF_USBD_Type * p_reg) in nrf_usbd_disable() argument
1100 p_reg->ENABLE = USBD_ENABLE_ENABLE_Disabled << USBD_ENABLE_ENABLE_Pos; in nrf_usbd_disable()
1101 (void) p_reg->ENABLE; in nrf_usbd_disable()
1104 NRF_STATIC_INLINE uint32_t nrf_usbd_eventcause_get(NRF_USBD_Type const * p_reg) in nrf_usbd_eventcause_get() argument
1106 return p_reg->EVENTCAUSE; in nrf_usbd_eventcause_get()
1109 NRF_STATIC_INLINE void nrf_usbd_eventcause_clear(NRF_USBD_Type * p_reg, uint32_t flags) in nrf_usbd_eventcause_clear() argument
1111 p_reg->EVENTCAUSE = flags; in nrf_usbd_eventcause_clear()
1112 (void) p_reg->EVENTCAUSE; in nrf_usbd_eventcause_clear()
1115 NRF_STATIC_INLINE uint32_t nrf_usbd_eventcause_get_and_clear(NRF_USBD_Type * p_reg) in nrf_usbd_eventcause_get_and_clear() argument
1118 ret = nrf_usbd_eventcause_get(p_reg); in nrf_usbd_eventcause_get_and_clear()
1119 nrf_usbd_eventcause_clear(p_reg, ret); in nrf_usbd_eventcause_get_and_clear()
1123 NRF_STATIC_INLINE uint32_t nrf_usbd_halted_get(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_halted_get() argument
1128 return p_reg->HALTED.EPIN[epnr]; in nrf_usbd_halted_get()
1132 return p_reg->HALTED.EPOUT[epnr]; in nrf_usbd_halted_get()
1136 NRF_STATIC_INLINE bool nrf_usbd_ep_is_stall(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_ep_is_stall() argument
1140 return USBD_HALTED_EPOUT_GETSTATUS_Halted == nrf_usbd_halted_get(p_reg, ep); in nrf_usbd_ep_is_stall()
1143 NRF_STATIC_INLINE uint32_t nrf_usbd_epstatus_get(NRF_USBD_Type const * p_reg) in nrf_usbd_epstatus_get() argument
1145 return p_reg->EPSTATUS; in nrf_usbd_epstatus_get()
1148 NRF_STATIC_INLINE void nrf_usbd_epstatus_clear(NRF_USBD_Type * p_reg, uint32_t flags) in nrf_usbd_epstatus_clear() argument
1150 p_reg->EPSTATUS = flags; in nrf_usbd_epstatus_clear()
1153 NRF_STATIC_INLINE uint32_t nrf_usbd_epstatus_get_and_clear(NRF_USBD_Type * p_reg) in nrf_usbd_epstatus_get_and_clear() argument
1156 ret = nrf_usbd_epstatus_get(p_reg); in nrf_usbd_epstatus_get_and_clear()
1157 nrf_usbd_epstatus_clear(p_reg, ret); in nrf_usbd_epstatus_get_and_clear()
1161 NRF_STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get(NRF_USBD_Type const * p_reg) in nrf_usbd_epdatastatus_get() argument
1163 return p_reg->EPDATASTATUS; in nrf_usbd_epdatastatus_get()
1166 NRF_STATIC_INLINE void nrf_usbd_epdatastatus_clear(NRF_USBD_Type * p_reg, uint32_t flags) in nrf_usbd_epdatastatus_clear() argument
1168 p_reg->EPDATASTATUS = flags; in nrf_usbd_epdatastatus_clear()
1171 NRF_STATIC_INLINE uint32_t nrf_usbd_epdatastatus_get_and_clear(NRF_USBD_Type * p_reg) in nrf_usbd_epdatastatus_get_and_clear() argument
1174 ret = nrf_usbd_epdatastatus_get(p_reg); in nrf_usbd_epdatastatus_get_and_clear()
1175 nrf_usbd_epdatastatus_clear(p_reg, ret); in nrf_usbd_epdatastatus_get_and_clear()
1179 NRF_STATIC_INLINE uint8_t nrf_usbd_setup_bmrequesttype_get(NRF_USBD_Type const * p_reg) in nrf_usbd_setup_bmrequesttype_get() argument
1181 return (uint8_t)(p_reg->BMREQUESTTYPE); in nrf_usbd_setup_bmrequesttype_get()
1184 NRF_STATIC_INLINE uint8_t nrf_usbd_setup_brequest_get(NRF_USBD_Type const * p_reg) in nrf_usbd_setup_brequest_get() argument
1186 return (uint8_t)(p_reg->BREQUEST); in nrf_usbd_setup_brequest_get()
1189 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_wvalue_get(NRF_USBD_Type const * p_reg) in nrf_usbd_setup_wvalue_get() argument
1191 const uint16_t val = (uint16_t)p_reg->WVALUEL; in nrf_usbd_setup_wvalue_get()
1192 return (uint16_t)(val | ((p_reg->WVALUEH) << 8)); in nrf_usbd_setup_wvalue_get()
1195 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_windex_get(NRF_USBD_Type const * p_reg) in nrf_usbd_setup_windex_get() argument
1197 const uint16_t val = (uint16_t)p_reg->WINDEXL; in nrf_usbd_setup_windex_get()
1198 return (uint16_t)(val | ((p_reg->WINDEXH) << 8)); in nrf_usbd_setup_windex_get()
1201 NRF_STATIC_INLINE uint16_t nrf_usbd_setup_wlength_get(NRF_USBD_Type const * p_reg) in nrf_usbd_setup_wlength_get() argument
1203 const uint16_t val = (uint16_t)p_reg->WLENGTHL; in nrf_usbd_setup_wlength_get()
1204 return (uint16_t)(val | ((p_reg->WLENGTHH) << 8)); in nrf_usbd_setup_wlength_get()
1207 NRF_STATIC_INLINE size_t nrf_usbd_epout_size_get(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_epout_size_get() argument
1213 size_t size_isoout = p_reg->SIZE.ISOOUT; in nrf_usbd_epout_size_get()
1222 return p_reg->SIZE.EPOUT[NRF_USBD_EP_NR_GET(ep)]; in nrf_usbd_epout_size_get()
1225 NRF_STATIC_INLINE size_t nrf_usbd_episoout_size_get(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_episoout_size_get() argument
1231 size_t size_isoout = p_reg->SIZE.ISOOUT; in nrf_usbd_episoout_size_get()
1244 NRF_STATIC_INLINE void nrf_usbd_epout_clear(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_epout_clear() argument
1247 p_reg->SIZE.EPOUT[NRF_USBD_EP_NR_GET(ep)] = 0; in nrf_usbd_epout_clear()
1248 (void) p_reg->SIZE.EPOUT[NRF_USBD_EP_NR_GET(ep)]; in nrf_usbd_epout_clear()
1251 NRF_STATIC_INLINE void nrf_usbd_pullup_enable(NRF_USBD_Type * p_reg) in nrf_usbd_pullup_enable() argument
1253 p_reg->USBPULLUP = USBD_USBPULLUP_CONNECT_Enabled << USBD_USBPULLUP_CONNECT_Pos; in nrf_usbd_pullup_enable()
1254 (void) p_reg->USBPULLUP; in nrf_usbd_pullup_enable()
1257 NRF_STATIC_INLINE void nrf_usbd_pullup_disable(NRF_USBD_Type * p_reg) in nrf_usbd_pullup_disable() argument
1259 p_reg->USBPULLUP = USBD_USBPULLUP_CONNECT_Disabled << USBD_USBPULLUP_CONNECT_Pos; in nrf_usbd_pullup_disable()
1260 (void) p_reg->USBPULLUP; in nrf_usbd_pullup_disable()
1263 NRF_STATIC_INLINE bool nrf_usbd_pullup_check(NRF_USBD_Type const * p_reg) in nrf_usbd_pullup_check() argument
1265 return p_reg->USBPULLUP == (USBD_USBPULLUP_CONNECT_Enabled << USBD_USBPULLUP_CONNECT_Pos); in nrf_usbd_pullup_check()
1268 NRF_STATIC_INLINE void nrf_usbd_dpdmvalue_set(NRF_USBD_Type * p_reg, nrf_usbd_dpdmvalue_t val) in nrf_usbd_dpdmvalue_set() argument
1270 p_reg->DPDMVALUE = ((uint32_t)val) << USBD_DPDMVALUE_STATE_Pos; in nrf_usbd_dpdmvalue_set()
1273 NRF_STATIC_INLINE void nrf_usbd_dtoggle_set(NRF_USBD_Type * p_reg, in nrf_usbd_dtoggle_set() argument
1279 p_reg->DTOGGLE = ep | (NRF_USBD_DTOGGLE_NOP << USBD_DTOGGLE_VALUE_Pos); in nrf_usbd_dtoggle_set()
1280 p_reg->DTOGGLE = ep | ((uint32_t)op << USBD_DTOGGLE_VALUE_Pos); in nrf_usbd_dtoggle_set()
1281 (void) p_reg->DTOGGLE; in nrf_usbd_dtoggle_set()
1284 NRF_STATIC_INLINE nrf_usbd_dtoggle_t nrf_usbd_dtoggle_get(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_dtoggle_get() argument
1288 p_reg->DTOGGLE = ep | (NRF_USBD_DTOGGLE_NOP << USBD_DTOGGLE_VALUE_Pos); in nrf_usbd_dtoggle_get()
1289 retval = ((p_reg->DTOGGLE) & USBD_DTOGGLE_VALUE_Msk) >> USBD_DTOGGLE_VALUE_Pos; in nrf_usbd_dtoggle_get()
1293 NRF_STATIC_INLINE bool nrf_usbd_ep_enable_check(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_ep_enable_check() argument
1300 return 0 != (p_reg->EPINEN & (1UL << epnr)); in nrf_usbd_ep_enable_check()
1304 return 0 != (p_reg->EPOUTEN & (1UL << epnr)); in nrf_usbd_ep_enable_check()
1308 NRF_STATIC_INLINE void nrf_usbd_ep_enable(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_ep_enable() argument
1315 p_reg->EPINEN |= 1UL << epnr; in nrf_usbd_ep_enable()
1319 p_reg->EPOUTEN |= 1UL << epnr; in nrf_usbd_ep_enable()
1323 NRF_STATIC_INLINE void nrf_usbd_ep_disable(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_ep_disable() argument
1330 p_reg->EPINEN &= ~(1UL << epnr); in nrf_usbd_ep_disable()
1334 p_reg->EPOUTEN &= ~(1UL << epnr); in nrf_usbd_ep_disable()
1338 NRF_STATIC_INLINE void nrf_usbd_ep_all_disable(NRF_USBD_Type * p_reg) in nrf_usbd_ep_all_disable() argument
1340 p_reg->EPINEN = 0; in nrf_usbd_ep_all_disable()
1341 p_reg->EPOUTEN = 0; in nrf_usbd_ep_all_disable()
1344 void nrf_usbd_ep_default_config(NRF_USBD_Type * p_reg) in nrf_usbd_ep_default_config() argument
1346 p_reg->EPINEN = USBD_EPINEN_IN0_Enable << USBD_EPINEN_IN0_Pos; in nrf_usbd_ep_default_config()
1347 p_reg->EPOUTEN = USBD_EPOUTEN_OUT0_Enable << USBD_EPOUTEN_OUT0_Pos; in nrf_usbd_ep_default_config()
1350 NRF_STATIC_INLINE void nrf_usbd_ep_stall(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_ep_stall() argument
1353 p_reg->EPSTALL = (USBD_EPSTALL_STALL_Stall << USBD_EPSTALL_STALL_Pos) | ep; in nrf_usbd_ep_stall()
1356 NRF_STATIC_INLINE void nrf_usbd_ep_unstall(NRF_USBD_Type * p_reg, uint8_t ep) in nrf_usbd_ep_unstall() argument
1359 p_reg->EPSTALL = (USBD_EPSTALL_STALL_UnStall << USBD_EPSTALL_STALL_Pos) | ep; in nrf_usbd_ep_unstall()
1362 NRF_STATIC_INLINE void nrf_usbd_isosplit_set(NRF_USBD_Type * p_reg, nrf_usbd_isosplit_t split) in nrf_usbd_isosplit_set() argument
1364 p_reg->ISOSPLIT = split << USBD_ISOSPLIT_SPLIT_Pos; in nrf_usbd_isosplit_set()
1367 NRF_STATIC_INLINE nrf_usbd_isosplit_t nrf_usbd_isosplit_get(NRF_USBD_Type const * p_reg) in nrf_usbd_isosplit_get() argument
1370 (((p_reg->ISOSPLIT) & USBD_ISOSPLIT_SPLIT_Msk) >> USBD_ISOSPLIT_SPLIT_Pos); in nrf_usbd_isosplit_get()
1373 NRF_STATIC_INLINE uint32_t nrf_usbd_framecntr_get(NRF_USBD_Type const * p_reg) in nrf_usbd_framecntr_get() argument
1375 return p_reg->FRAMECNTR; in nrf_usbd_framecntr_get()
1378 NRF_STATIC_INLINE void nrf_usbd_lowpower_enable(NRF_USBD_Type * p_reg) in nrf_usbd_lowpower_enable() argument
1380 p_reg->LOWPOWER = USBD_LOWPOWER_LOWPOWER_LowPower << USBD_LOWPOWER_LOWPOWER_Pos; in nrf_usbd_lowpower_enable()
1381 (void) p_reg->LOWPOWER; in nrf_usbd_lowpower_enable()
1384 NRF_STATIC_INLINE void nrf_usbd_lowpower_disable(NRF_USBD_Type * p_reg) in nrf_usbd_lowpower_disable() argument
1386 p_reg->LOWPOWER = USBD_LOWPOWER_LOWPOWER_ForceNormal << USBD_LOWPOWER_LOWPOWER_Pos; in nrf_usbd_lowpower_disable()
1387 (void) p_reg->LOWPOWER; in nrf_usbd_lowpower_disable()
1390 NRF_STATIC_INLINE bool nrf_usbd_lowpower_check(NRF_USBD_Type const * p_reg) in nrf_usbd_lowpower_check() argument
1392 return (p_reg->LOWPOWER != (USBD_LOWPOWER_LOWPOWER_ForceNormal << USBD_LOWPOWER_LOWPOWER_Pos)); in nrf_usbd_lowpower_check()
1395 NRF_STATIC_INLINE void nrf_usbd_isoinconfig_set(NRF_USBD_Type * p_reg, in nrf_usbd_isoinconfig_set() argument
1398 p_reg->ISOINCONFIG = ((uint32_t)config) << USBD_ISOINCONFIG_RESPONSE_Pos; in nrf_usbd_isoinconfig_set()
1401 NRF_STATIC_INLINE nrf_usbd_isoinconfig_t nrf_usbd_isoinconfig_get(NRF_USBD_Type const * p_reg) in nrf_usbd_isoinconfig_get() argument
1403 return (nrf_usbd_isoinconfig_t) (((p_reg->ISOINCONFIG) & USBD_ISOINCONFIG_RESPONSE_Msk) >> in nrf_usbd_isoinconfig_get()
1407 NRF_STATIC_INLINE void nrf_usbd_ep_easydma_set(NRF_USBD_Type * p_reg, in nrf_usbd_ep_easydma_set() argument
1416 p_reg->ISOIN.PTR = ptr; in nrf_usbd_ep_easydma_set()
1417 p_reg->ISOIN.MAXCNT = maxcnt; in nrf_usbd_ep_easydma_set()
1422 p_reg->EPIN[epnr].PTR = ptr; in nrf_usbd_ep_easydma_set()
1423 p_reg->EPIN[epnr].MAXCNT = maxcnt; in nrf_usbd_ep_easydma_set()
1430 p_reg->ISOOUT.PTR = ptr; in nrf_usbd_ep_easydma_set()
1431 p_reg->ISOOUT.MAXCNT = maxcnt; in nrf_usbd_ep_easydma_set()
1436 p_reg->EPOUT[epnr].PTR = ptr; in nrf_usbd_ep_easydma_set()
1437 p_reg->EPOUT[epnr].MAXCNT = maxcnt; in nrf_usbd_ep_easydma_set()
1442 NRF_STATIC_INLINE uint32_t nrf_usbd_ep_amount_get(NRF_USBD_Type const * p_reg, uint8_t ep) in nrf_usbd_ep_amount_get() argument
1450 ret = p_reg->ISOIN.AMOUNT; in nrf_usbd_ep_amount_get()
1455 ret = p_reg->EPIN[epnr].AMOUNT; in nrf_usbd_ep_amount_get()
1462 ret = p_reg->ISOOUT.AMOUNT; in nrf_usbd_ep_amount_get()
1467 ret = p_reg->EPOUT[epnr].AMOUNT; in nrf_usbd_ep_amount_get()