/loramac-node-3.7.0/src/boards/mcu/saml21/hri/ |
D | hri_nvic_l21.h | 75 …tic inline void hri_nvic_set_NVICISER_SETENA_bf(const void *const hw, hri_nvic_nviciser_reg_t mask) in hri_nvic_set_NVICISER_SETENA_bf() argument 78 ((Nvic *)hw)->NVICISER.reg |= NVIC_NVICISER_SETENA(mask); in hri_nvic_set_NVICISER_SETENA_bf() 83 hri_nvic_nviciser_reg_t mask) in hri_nvic_get_NVICISER_SETENA_bf() argument 87 tmp = (tmp & NVIC_NVICISER_SETENA(mask)) >> 0; in hri_nvic_get_NVICISER_SETENA_bf() 102 …c inline void hri_nvic_clear_NVICISER_SETENA_bf(const void *const hw, hri_nvic_nviciser_reg_t mask) in hri_nvic_clear_NVICISER_SETENA_bf() argument 105 ((Nvic *)hw)->NVICISER.reg &= ~NVIC_NVICISER_SETENA(mask); in hri_nvic_clear_NVICISER_SETENA_bf() 109 … inline void hri_nvic_toggle_NVICISER_SETENA_bf(const void *const hw, hri_nvic_nviciser_reg_t mask) in hri_nvic_toggle_NVICISER_SETENA_bf() argument 112 ((Nvic *)hw)->NVICISER.reg ^= NVIC_NVICISER_SETENA(mask); in hri_nvic_toggle_NVICISER_SETENA_bf() 124 static inline void hri_nvic_set_NVICISER_reg(const void *const hw, hri_nvic_nviciser_reg_t mask) in hri_nvic_set_NVICISER_reg() argument 127 ((Nvic *)hw)->NVICISER.reg |= mask; in hri_nvic_set_NVICISER_reg() [all …]
|
D | hri_mtb_l21.h | 87 static inline void hri_mtb_set_CLAIM_reg(const void *const hw, hri_mtb_claimset_reg_t mask) in hri_mtb_set_CLAIM_reg() argument 89 ((Mtb *)hw)->CLAIMSET.reg = mask; in hri_mtb_set_CLAIM_reg() 92 …ine hri_mtb_claimset_reg_t hri_mtb_get_CLAIM_reg(const void *const hw, hri_mtb_claimset_reg_t mask) in hri_mtb_get_CLAIM_reg() argument 96 tmp &= mask; in hri_mtb_get_CLAIM_reg() 111 static inline void hri_mtb_clear_CLAIM_reg(const void *const hw, hri_mtb_claimset_reg_t mask) in hri_mtb_clear_CLAIM_reg() argument 113 ((Mtb *)hw)->CLAIMCLR.reg = mask; in hri_mtb_clear_CLAIM_reg() 116 static inline void hri_mtb_set_POSITION_reg(const void *const hw, hri_mtb_position_reg_t mask) in hri_mtb_set_POSITION_reg() argument 119 ((Mtb *)hw)->POSITION.reg |= mask; in hri_mtb_set_POSITION_reg() 123 … hri_mtb_position_reg_t hri_mtb_get_POSITION_reg(const void *const hw, hri_mtb_position_reg_t mask) in hri_mtb_get_POSITION_reg() argument 127 tmp &= mask; in hri_mtb_get_POSITION_reg() [all …]
|
D | hri_dsu_l21.h | 94 static inline void hri_dsu_set_ADDR_AMOD_bf(const void *const hw, hri_dsu_addr_reg_t mask) in hri_dsu_set_ADDR_AMOD_bf() argument 97 ((Dsu *)hw)->ADDR.reg |= DSU_ADDR_AMOD(mask); in hri_dsu_set_ADDR_AMOD_bf() 101 …c inline hri_dsu_addr_reg_t hri_dsu_get_ADDR_AMOD_bf(const void *const hw, hri_dsu_addr_reg_t mask) in hri_dsu_get_ADDR_AMOD_bf() argument 105 tmp = (tmp & DSU_ADDR_AMOD(mask)) >> DSU_ADDR_AMOD_Pos; in hri_dsu_get_ADDR_AMOD_bf() 120 static inline void hri_dsu_clear_ADDR_AMOD_bf(const void *const hw, hri_dsu_addr_reg_t mask) in hri_dsu_clear_ADDR_AMOD_bf() argument 123 ((Dsu *)hw)->ADDR.reg &= ~DSU_ADDR_AMOD(mask); in hri_dsu_clear_ADDR_AMOD_bf() 127 static inline void hri_dsu_toggle_ADDR_AMOD_bf(const void *const hw, hri_dsu_addr_reg_t mask) in hri_dsu_toggle_ADDR_AMOD_bf() argument 130 ((Dsu *)hw)->ADDR.reg ^= DSU_ADDR_AMOD(mask); in hri_dsu_toggle_ADDR_AMOD_bf() 142 static inline void hri_dsu_set_ADDR_ADDR_bf(const void *const hw, hri_dsu_addr_reg_t mask) in hri_dsu_set_ADDR_ADDR_bf() argument 145 ((Dsu *)hw)->ADDR.reg |= DSU_ADDR_ADDR(mask); in hri_dsu_set_ADDR_ADDR_bf() [all …]
|
D | hri_rstc_l21.h | 69 …ic inline void hri_rstc_set_WKDBCONF_WKDBCNT_bf(const void *const hw, hri_rstc_wkdbconf_reg_t mask) in hri_rstc_set_WKDBCONF_WKDBCNT_bf() argument 72 ((Rstc *)hw)->WKDBCONF.reg |= RSTC_WKDBCONF_WKDBCNT(mask); in hri_rstc_set_WKDBCONF_WKDBCNT_bf() 77 hri_rstc_wkdbconf_reg_t mask) in hri_rstc_get_WKDBCONF_WKDBCNT_bf() argument 81 tmp = (tmp & RSTC_WKDBCONF_WKDBCNT(mask)) >> RSTC_WKDBCONF_WKDBCNT_Pos; in hri_rstc_get_WKDBCONF_WKDBCNT_bf() 96 … inline void hri_rstc_clear_WKDBCONF_WKDBCNT_bf(const void *const hw, hri_rstc_wkdbconf_reg_t mask) in hri_rstc_clear_WKDBCONF_WKDBCNT_bf() argument 99 ((Rstc *)hw)->WKDBCONF.reg &= ~RSTC_WKDBCONF_WKDBCNT(mask); in hri_rstc_clear_WKDBCONF_WKDBCNT_bf() 103 …inline void hri_rstc_toggle_WKDBCONF_WKDBCNT_bf(const void *const hw, hri_rstc_wkdbconf_reg_t mask) in hri_rstc_toggle_WKDBCONF_WKDBCNT_bf() argument 106 ((Rstc *)hw)->WKDBCONF.reg ^= RSTC_WKDBCONF_WKDBCNT(mask); in hri_rstc_toggle_WKDBCONF_WKDBCNT_bf() 118 static inline void hri_rstc_set_WKDBCONF_reg(const void *const hw, hri_rstc_wkdbconf_reg_t mask) in hri_rstc_set_WKDBCONF_reg() argument 121 ((Rstc *)hw)->WKDBCONF.reg |= mask; in hri_rstc_set_WKDBCONF_reg() [all …]
|
D | hri_pm_l21.h | 94 static inline void hri_pm_set_INTEN_reg(const void *const hw, hri_pm_intenset_reg_t mask) in hri_pm_set_INTEN_reg() argument 96 ((Pm *)hw)->INTENSET.reg = mask; in hri_pm_set_INTEN_reg() 99 …inline hri_pm_intenset_reg_t hri_pm_get_INTEN_reg(const void *const hw, hri_pm_intenset_reg_t mask) in hri_pm_get_INTEN_reg() argument 103 tmp &= mask; in hri_pm_get_INTEN_reg() 118 static inline void hri_pm_clear_INTEN_reg(const void *const hw, hri_pm_intenset_reg_t mask) in hri_pm_clear_INTEN_reg() argument 120 ((Pm *)hw)->INTENCLR.reg = mask; in hri_pm_clear_INTEN_reg() 143 …inline hri_pm_intflag_reg_t hri_pm_get_INTFLAG_reg(const void *const hw, hri_pm_intflag_reg_t mask) in hri_pm_get_INTFLAG_reg() argument 147 tmp &= mask; in hri_pm_get_INTFLAG_reg() 156 static inline void hri_pm_clear_INTFLAG_reg(const void *const hw, hri_pm_intflag_reg_t mask) in hri_pm_clear_INTFLAG_reg() argument 158 ((Pm *)hw)->INTFLAG.reg = mask; in hri_pm_clear_INTFLAG_reg() [all …]
|
D | hri_nvmctrl_l21.h | 119 static inline void hri_nvmctrl_set_INTEN_reg(const void *const hw, hri_nvmctrl_intenset_reg_t mask) in hri_nvmctrl_set_INTEN_reg() argument 121 ((Nvmctrl *)hw)->INTENSET.reg = mask; in hri_nvmctrl_set_INTEN_reg() 125 hri_nvmctrl_intenset_reg_t mask) in hri_nvmctrl_get_INTEN_reg() argument 129 tmp &= mask; in hri_nvmctrl_get_INTEN_reg() 144 …atic inline void hri_nvmctrl_clear_INTEN_reg(const void *const hw, hri_nvmctrl_intenset_reg_t mask) in hri_nvmctrl_clear_INTEN_reg() argument 146 ((Nvmctrl *)hw)->INTENCLR.reg = mask; in hri_nvmctrl_clear_INTEN_reg() 190 hri_nvmctrl_intflag_reg_t mask) in hri_nvmctrl_get_INTFLAG_reg() argument 194 tmp &= mask; in hri_nvmctrl_get_INTFLAG_reg() 203 …tic inline void hri_nvmctrl_clear_INTFLAG_reg(const void *const hw, hri_nvmctrl_intflag_reg_t mask) in hri_nvmctrl_clear_INTFLAG_reg() argument 205 ((Nvmctrl *)hw)->INTFLAG.reg = mask; in hri_nvmctrl_clear_INTFLAG_reg() [all …]
|
D | hri_adc_l21.h | 167 static inline void hri_adc_set_INTEN_reg(const void *const hw, hri_adc_intenset_reg_t mask) in hri_adc_set_INTEN_reg() argument 169 ((Adc *)hw)->INTENSET.reg = mask; in hri_adc_set_INTEN_reg() 172 …ine hri_adc_intenset_reg_t hri_adc_get_INTEN_reg(const void *const hw, hri_adc_intenset_reg_t mask) in hri_adc_get_INTEN_reg() argument 176 tmp &= mask; in hri_adc_get_INTEN_reg() 191 static inline void hri_adc_clear_INTEN_reg(const void *const hw, hri_adc_intenset_reg_t mask) in hri_adc_clear_INTEN_reg() argument 193 ((Adc *)hw)->INTENCLR.reg = mask; in hri_adc_clear_INTEN_reg() 256 …ine hri_adc_intflag_reg_t hri_adc_get_INTFLAG_reg(const void *const hw, hri_adc_intflag_reg_t mask) in hri_adc_get_INTFLAG_reg() argument 260 tmp &= mask; in hri_adc_get_INTFLAG_reg() 269 static inline void hri_adc_clear_INTFLAG_reg(const void *const hw, hri_adc_intflag_reg_t mask) in hri_adc_clear_INTFLAG_reg() argument 271 ((Adc *)hw)->INTFLAG.reg = mask; in hri_adc_clear_INTFLAG_reg() [all …]
|
D | hri_systemcontrol_l21.h | 71 …d hri_systemcontrol_set_CPUID_REVISION_bf(const void *const hw, hri_systemcontrol_cpuid_reg_t mask) in hri_systemcontrol_set_CPUID_REVISION_bf() argument 74 ((Systemcontrol *)hw)->CPUID.reg |= SystemControl_CPUID_REVISION(mask); in hri_systemcontrol_set_CPUID_REVISION_bf() 79 … hri_systemcontrol_cpuid_reg_t mask) in hri_systemcontrol_get_CPUID_REVISION_bf() argument 83 tmp = (tmp & SystemControl_CPUID_REVISION(mask)) >> 0; in hri_systemcontrol_get_CPUID_REVISION_bf() 98 …hri_systemcontrol_clear_CPUID_REVISION_bf(const void *const hw, hri_systemcontrol_cpuid_reg_t mask) in hri_systemcontrol_clear_CPUID_REVISION_bf() argument 101 ((Systemcontrol *)hw)->CPUID.reg &= ~SystemControl_CPUID_REVISION(mask); in hri_systemcontrol_clear_CPUID_REVISION_bf() 105 …ri_systemcontrol_toggle_CPUID_REVISION_bf(const void *const hw, hri_systemcontrol_cpuid_reg_t mask) in hri_systemcontrol_toggle_CPUID_REVISION_bf() argument 108 ((Systemcontrol *)hw)->CPUID.reg ^= SystemControl_CPUID_REVISION(mask); in hri_systemcontrol_toggle_CPUID_REVISION_bf() 120 …oid hri_systemcontrol_set_CPUID_PARTNO_bf(const void *const hw, hri_systemcontrol_cpuid_reg_t mask) in hri_systemcontrol_set_CPUID_PARTNO_bf() argument 123 ((Systemcontrol *)hw)->CPUID.reg |= SystemControl_CPUID_PARTNO(mask); in hri_systemcontrol_set_CPUID_PARTNO_bf() [all …]
|
D | hri_port_l21.h | 79 static inline void hri_portgroup_set_DIR_DIR_bf(const void *const hw, hri_port_dir_reg_t mask) in hri_portgroup_set_DIR_DIR_bf() argument 81 ((PortGroup *)hw)->DIRSET.reg = PORT_DIR_DIR(mask); in hri_portgroup_set_DIR_DIR_bf() 84 …line hri_port_dir_reg_t hri_portgroup_get_DIR_DIR_bf(const void *const hw, hri_port_dir_reg_t mask) in hri_portgroup_get_DIR_DIR_bf() argument 88 tmp = (tmp & PORT_DIR_DIR(mask)) >> PORT_DIR_DIR_Pos; in hri_portgroup_get_DIR_DIR_bf() 106 static inline void hri_portgroup_clear_DIR_DIR_bf(const void *const hw, hri_port_dir_reg_t mask) in hri_portgroup_clear_DIR_DIR_bf() argument 108 ((PortGroup *)hw)->DIRCLR.reg = PORT_DIR_DIR(mask); in hri_portgroup_clear_DIR_DIR_bf() 111 static inline void hri_portgroup_toggle_DIR_DIR_bf(const void *const hw, hri_port_dir_reg_t mask) in hri_portgroup_toggle_DIR_DIR_bf() argument 113 ((PortGroup *)hw)->DIRTGL.reg = PORT_DIR_DIR(mask); in hri_portgroup_toggle_DIR_DIR_bf() 116 static inline void hri_portgroup_set_DIR_reg(const void *const hw, hri_port_dir_reg_t mask) in hri_portgroup_set_DIR_reg() argument 118 ((PortGroup *)hw)->DIRSET.reg = mask; in hri_portgroup_set_DIR_reg() [all …]
|
D | hri_dmac_l21.h | 162 static inline void hri_dmac_set_CHINTEN_reg(const void *const hw, hri_dmac_chintenset_reg_t mask) in hri_dmac_set_CHINTEN_reg() argument 164 ((Dmac *)hw)->CHINTENSET.reg = mask; in hri_dmac_set_CHINTEN_reg() 167 …mac_chintenset_reg_t hri_dmac_get_CHINTEN_reg(const void *const hw, hri_dmac_chintenset_reg_t mask) in hri_dmac_get_CHINTEN_reg() argument 171 tmp &= mask; in hri_dmac_get_CHINTEN_reg() 186 static inline void hri_dmac_clear_CHINTEN_reg(const void *const hw, hri_dmac_chintenset_reg_t mask) in hri_dmac_clear_CHINTEN_reg() argument 188 ((Dmac *)hw)->CHINTENCLR.reg = mask; in hri_dmac_clear_CHINTEN_reg() 251 …mac_chintflag_reg_t hri_dmac_get_CHINTFLAG_reg(const void *const hw, hri_dmac_chintflag_reg_t mask) in hri_dmac_get_CHINTFLAG_reg() argument 255 tmp &= mask; in hri_dmac_get_CHINTFLAG_reg() 264 static inline void hri_dmac_clear_CHINTFLAG_reg(const void *const hw, hri_dmac_chintflag_reg_t mask) in hri_dmac_clear_CHINTFLAG_reg() argument 266 ((Dmac *)hw)->CHINTFLAG.reg = mask; in hri_dmac_clear_CHINTFLAG_reg() [all …]
|
D | hri_eic_l21.h | 83 static inline void hri_eic_set_INTEN_EXTINT_bf(const void *const hw, hri_eic_intenset_reg_t mask) in hri_eic_set_INTEN_EXTINT_bf() argument 85 ((Eic *)hw)->INTENSET.reg = EIC_INTENSET_EXTINT(mask); in hri_eic_set_INTEN_EXTINT_bf() 88 …i_eic_intenset_reg_t hri_eic_get_INTEN_EXTINT_bf(const void *const hw, hri_eic_intenset_reg_t mask) in hri_eic_get_INTEN_EXTINT_bf() argument 92 tmp = (tmp & EIC_INTENSET_EXTINT(mask)) >> EIC_INTENSET_EXTINT_Pos; in hri_eic_get_INTEN_EXTINT_bf() 110 static inline void hri_eic_clear_INTEN_EXTINT_bf(const void *const hw, hri_eic_intenset_reg_t mask) in hri_eic_clear_INTEN_EXTINT_bf() argument 112 ((Eic *)hw)->INTENCLR.reg = EIC_INTENSET_EXTINT(mask); in hri_eic_clear_INTEN_EXTINT_bf() 115 static inline void hri_eic_set_INTEN_reg(const void *const hw, hri_eic_intenset_reg_t mask) in hri_eic_set_INTEN_reg() argument 117 ((Eic *)hw)->INTENSET.reg = mask; in hri_eic_set_INTEN_reg() 120 …ine hri_eic_intenset_reg_t hri_eic_get_INTEN_reg(const void *const hw, hri_eic_intenset_reg_t mask) in hri_eic_get_INTEN_reg() argument 124 tmp &= mask; in hri_eic_get_INTEN_reg() [all …]
|
D | hri_tc_l21.h | 95 static inline void hri_tccount16_set_COUNT_COUNT_bf(const void *const hw, hri_tc_count16_reg_t mask) in hri_tccount16_set_COUNT_COUNT_bf() argument 98 ((Tc *)hw)->COUNT16.COUNT.reg |= TC_COUNT16_COUNT_COUNT(mask); in hri_tccount16_set_COUNT_COUNT_bf() 102 …_tc_count16_reg_t hri_tccount16_get_COUNT_COUNT_bf(const void *const hw, hri_tc_count16_reg_t mask) in hri_tccount16_get_COUNT_COUNT_bf() argument 106 tmp = (tmp & TC_COUNT16_COUNT_COUNT(mask)) >> TC_COUNT16_COUNT_COUNT_Pos; in hri_tccount16_get_COUNT_COUNT_bf() 121 …tic inline void hri_tccount16_clear_COUNT_COUNT_bf(const void *const hw, hri_tc_count16_reg_t mask) in hri_tccount16_clear_COUNT_COUNT_bf() argument 124 ((Tc *)hw)->COUNT16.COUNT.reg &= ~TC_COUNT16_COUNT_COUNT(mask); in hri_tccount16_clear_COUNT_COUNT_bf() 128 …ic inline void hri_tccount16_toggle_COUNT_COUNT_bf(const void *const hw, hri_tc_count16_reg_t mask) in hri_tccount16_toggle_COUNT_COUNT_bf() argument 131 ((Tc *)hw)->COUNT16.COUNT.reg ^= TC_COUNT16_COUNT_COUNT(mask); in hri_tccount16_toggle_COUNT_COUNT_bf() 143 static inline void hri_tccount16_set_COUNT_reg(const void *const hw, hri_tc_count16_reg_t mask) in hri_tccount16_set_COUNT_reg() argument 146 ((Tc *)hw)->COUNT16.COUNT.reg |= mask; in hri_tccount16_set_COUNT_reg() [all …]
|
D | hri_aes_l21.h | 124 static inline void hri_aes_set_INTEN_reg(const void *const hw, hri_aes_intenset_reg_t mask) in hri_aes_set_INTEN_reg() argument 126 ((Aes *)hw)->INTENSET.reg = mask; in hri_aes_set_INTEN_reg() 129 …ine hri_aes_intenset_reg_t hri_aes_get_INTEN_reg(const void *const hw, hri_aes_intenset_reg_t mask) in hri_aes_get_INTEN_reg() argument 133 tmp &= mask; in hri_aes_get_INTEN_reg() 148 static inline void hri_aes_clear_INTEN_reg(const void *const hw, hri_aes_intenset_reg_t mask) in hri_aes_clear_INTEN_reg() argument 150 ((Aes *)hw)->INTENCLR.reg = mask; in hri_aes_clear_INTEN_reg() 193 …ine hri_aes_intflag_reg_t hri_aes_get_INTFLAG_reg(const void *const hw, hri_aes_intflag_reg_t mask) in hri_aes_get_INTFLAG_reg() argument 197 tmp &= mask; in hri_aes_get_INTFLAG_reg() 206 static inline void hri_aes_clear_INTFLAG_reg(const void *const hw, hri_aes_intflag_reg_t mask) in hri_aes_clear_INTFLAG_reg() argument 208 ((Aes *)hw)->INTFLAG.reg = mask; in hri_aes_clear_INTFLAG_reg() [all …]
|
D | hri_wdt_l21.h | 105 static inline void hri_wdt_set_INTEN_reg(const void *const hw, hri_wdt_intenset_reg_t mask) in hri_wdt_set_INTEN_reg() argument 107 ((Wdt *)hw)->INTENSET.reg = mask; in hri_wdt_set_INTEN_reg() 110 …ine hri_wdt_intenset_reg_t hri_wdt_get_INTEN_reg(const void *const hw, hri_wdt_intenset_reg_t mask) in hri_wdt_get_INTEN_reg() argument 114 tmp &= mask; in hri_wdt_get_INTEN_reg() 129 static inline void hri_wdt_clear_INTEN_reg(const void *const hw, hri_wdt_intenset_reg_t mask) in hri_wdt_clear_INTEN_reg() argument 131 ((Wdt *)hw)->INTENCLR.reg = mask; in hri_wdt_clear_INTEN_reg() 154 …ine hri_wdt_intflag_reg_t hri_wdt_get_INTFLAG_reg(const void *const hw, hri_wdt_intflag_reg_t mask) in hri_wdt_get_INTFLAG_reg() argument 158 tmp &= mask; in hri_wdt_get_INTFLAG_reg() 167 static inline void hri_wdt_clear_INTFLAG_reg(const void *const hw, hri_wdt_intflag_reg_t mask) in hri_wdt_clear_INTFLAG_reg() argument 169 ((Wdt *)hw)->INTFLAG.reg = mask; in hri_wdt_clear_INTFLAG_reg() [all …]
|
D | hri_usb_l21.h | 272 hri_usbpipe_pstatus_reg_t mask) in hri_usbpipe_set_PSTATUS_reg() argument 274 ((UsbHost *)hw)->HostPipe[submodule_index].PSTATUSSET.reg = mask; in hri_usbpipe_set_PSTATUS_reg() 278 hri_usbpipe_pstatus_reg_t mask) in hri_usbpipe_get_PSTATUS_reg() argument 282 tmp &= mask; in hri_usbpipe_get_PSTATUS_reg() 299 hri_usbpipe_pstatus_reg_t mask) in hri_usbpipe_clear_PSTATUS_reg() argument 301 ((UsbHost *)hw)->HostPipe[submodule_index].PSTATUSCLR.reg = mask; in hri_usbpipe_clear_PSTATUS_reg() 455 hri_usbpipe_pintenset_reg_t mask) in hri_usbpipe_set_PINTEN_reg() argument 457 ((UsbHost *)hw)->HostPipe[submodule_index].PINTENSET.reg = mask; in hri_usbpipe_set_PINTEN_reg() 461 … hri_usbpipe_pintenset_reg_t mask) in hri_usbpipe_get_PINTEN_reg() argument 465 tmp &= mask; in hri_usbpipe_get_PINTEN_reg() [all …]
|
D | hri_systick_l21.h | 227 static inline void hri_systick_set_CSR_reg(const void *const hw, hri_systick_csr_reg_t mask) in hri_systick_set_CSR_reg() argument 230 ((Systick *)hw)->CSR.reg |= mask; in hri_systick_set_CSR_reg() 234 …ine hri_systick_csr_reg_t hri_systick_get_CSR_reg(const void *const hw, hri_systick_csr_reg_t mask) in hri_systick_get_CSR_reg() argument 238 tmp &= mask; in hri_systick_get_CSR_reg() 249 static inline void hri_systick_clear_CSR_reg(const void *const hw, hri_systick_csr_reg_t mask) in hri_systick_clear_CSR_reg() argument 252 ((Systick *)hw)->CSR.reg &= ~mask; in hri_systick_clear_CSR_reg() 256 static inline void hri_systick_toggle_CSR_reg(const void *const hw, hri_systick_csr_reg_t mask) in hri_systick_toggle_CSR_reg() argument 259 ((Systick *)hw)->CSR.reg ^= mask; in hri_systick_toggle_CSR_reg() 268 static inline void hri_systick_set_RVR_RELOAD_bf(const void *const hw, hri_systick_rvr_reg_t mask) in hri_systick_set_RVR_RELOAD_bf() argument 271 ((Systick *)hw)->RVR.reg |= SysTick_RVR_RELOAD(mask); in hri_systick_set_RVR_RELOAD_bf() [all …]
|
D | hri_supc_l21.h | 289 static inline void hri_supc_set_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask) in hri_supc_set_INTEN_reg() argument 291 ((Supc *)hw)->INTENSET.reg = mask; in hri_supc_set_INTEN_reg() 294 … hri_supc_intenset_reg_t hri_supc_get_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask) in hri_supc_get_INTEN_reg() argument 298 tmp &= mask; in hri_supc_get_INTEN_reg() 313 static inline void hri_supc_clear_INTEN_reg(const void *const hw, hri_supc_intenset_reg_t mask) in hri_supc_clear_INTEN_reg() argument 315 ((Supc *)hw)->INTENCLR.reg = mask; in hri_supc_clear_INTEN_reg() 498 … hri_supc_intflag_reg_t hri_supc_get_INTFLAG_reg(const void *const hw, hri_supc_intflag_reg_t mask) in hri_supc_get_INTFLAG_reg() argument 502 tmp &= mask; in hri_supc_get_INTFLAG_reg() 511 static inline void hri_supc_clear_INTFLAG_reg(const void *const hw, hri_supc_intflag_reg_t mask) in hri_supc_clear_INTFLAG_reg() argument 513 ((Supc *)hw)->INTFLAG.reg = mask; in hri_supc_clear_INTFLAG_reg() [all …]
|
D | hri_oscctrl_l21.h | 342 static inline void hri_oscctrl_set_INTEN_reg(const void *const hw, hri_oscctrl_intenset_reg_t mask) in hri_oscctrl_set_INTEN_reg() argument 344 ((Oscctrl *)hw)->INTENSET.reg = mask; in hri_oscctrl_set_INTEN_reg() 348 hri_oscctrl_intenset_reg_t mask) in hri_oscctrl_get_INTEN_reg() argument 352 tmp &= mask; in hri_oscctrl_get_INTEN_reg() 367 …atic inline void hri_oscctrl_clear_INTEN_reg(const void *const hw, hri_oscctrl_intenset_reg_t mask) in hri_oscctrl_clear_INTEN_reg() argument 369 ((Oscctrl *)hw)->INTENCLR.reg = mask; in hri_oscctrl_clear_INTEN_reg() 593 hri_oscctrl_intflag_reg_t mask) in hri_oscctrl_get_INTFLAG_reg() argument 597 tmp &= mask; in hri_oscctrl_get_INTFLAG_reg() 606 …tic inline void hri_oscctrl_clear_INTFLAG_reg(const void *const hw, hri_oscctrl_intflag_reg_t mask) in hri_oscctrl_clear_INTFLAG_reg() argument 608 ((Oscctrl *)hw)->INTFLAG.reg = mask; in hri_oscctrl_clear_INTFLAG_reg() [all …]
|
D | hri_sercom_l21.h | 265 …ic inline void hri_sercomspi_set_INTEN_reg(const void *const hw, hri_sercomspi_intenset_reg_t mask) in hri_sercomspi_set_INTEN_reg() argument 267 ((Sercom *)hw)->SPI.INTENSET.reg = mask; in hri_sercomspi_set_INTEN_reg() 271 … hri_sercomspi_intenset_reg_t mask) in hri_sercomspi_get_INTEN_reg() argument 275 tmp &= mask; in hri_sercomspi_get_INTEN_reg() 290 … inline void hri_sercomspi_clear_INTEN_reg(const void *const hw, hri_sercomspi_intenset_reg_t mask) in hri_sercomspi_clear_INTEN_reg() argument 292 ((Sercom *)hw)->SPI.INTENCLR.reg = mask; in hri_sercomspi_clear_INTEN_reg() 396 … hri_sercomspi_intflag_reg_t mask) in hri_sercomspi_get_INTFLAG_reg() argument 400 tmp &= mask; in hri_sercomspi_get_INTFLAG_reg() 409 …inline void hri_sercomspi_clear_INTFLAG_reg(const void *const hw, hri_sercomspi_intflag_reg_t mask) in hri_sercomspi_clear_INTFLAG_reg() argument 411 ((Sercom *)hw)->SPI.INTFLAG.reg = mask; in hri_sercomspi_clear_INTFLAG_reg() [all …]
|
D | hri_tcc_l21.h | 94 static inline void hri_tcc_set_COUNT_DITH4_COUNT_bf(const void *const hw, hri_tcc_count_reg_t mask) in hri_tcc_set_COUNT_DITH4_COUNT_bf() argument 97 ((Tcc *)hw)->COUNT.reg |= TCC_COUNT_DITH4_COUNT(mask); in hri_tcc_set_COUNT_DITH4_COUNT_bf() 101 …ri_tcc_count_reg_t hri_tcc_get_COUNT_DITH4_COUNT_bf(const void *const hw, hri_tcc_count_reg_t mask) in hri_tcc_get_COUNT_DITH4_COUNT_bf() argument 105 tmp = (tmp & TCC_COUNT_DITH4_COUNT(mask)) >> TCC_COUNT_DITH4_COUNT_Pos; in hri_tcc_get_COUNT_DITH4_COUNT_bf() 120 …atic inline void hri_tcc_clear_COUNT_DITH4_COUNT_bf(const void *const hw, hri_tcc_count_reg_t mask) in hri_tcc_clear_COUNT_DITH4_COUNT_bf() argument 123 ((Tcc *)hw)->COUNT.reg &= ~TCC_COUNT_DITH4_COUNT(mask); in hri_tcc_clear_COUNT_DITH4_COUNT_bf() 127 …tic inline void hri_tcc_toggle_COUNT_DITH4_COUNT_bf(const void *const hw, hri_tcc_count_reg_t mask) in hri_tcc_toggle_COUNT_DITH4_COUNT_bf() argument 130 ((Tcc *)hw)->COUNT.reg ^= TCC_COUNT_DITH4_COUNT(mask); in hri_tcc_toggle_COUNT_DITH4_COUNT_bf() 142 static inline void hri_tcc_set_COUNT_DITH5_COUNT_bf(const void *const hw, hri_tcc_count_reg_t mask) in hri_tcc_set_COUNT_DITH5_COUNT_bf() argument 145 ((Tcc *)hw)->COUNT.reg |= TCC_COUNT_DITH5_COUNT(mask); in hri_tcc_set_COUNT_DITH5_COUNT_bf() [all …]
|
D | hri_ccl_l21.h | 161 static inline void hri_ccl_set_CTRL_reg(const void *const hw, hri_ccl_ctrl_reg_t mask) in hri_ccl_set_CTRL_reg() argument 164 ((Ccl *)hw)->CTRL.reg |= mask; in hri_ccl_set_CTRL_reg() 168 static inline hri_ccl_ctrl_reg_t hri_ccl_get_CTRL_reg(const void *const hw, hri_ccl_ctrl_reg_t mask) in hri_ccl_get_CTRL_reg() argument 172 tmp &= mask; in hri_ccl_get_CTRL_reg() 183 static inline void hri_ccl_clear_CTRL_reg(const void *const hw, hri_ccl_ctrl_reg_t mask) in hri_ccl_clear_CTRL_reg() argument 186 ((Ccl *)hw)->CTRL.reg &= ~mask; in hri_ccl_clear_CTRL_reg() 190 static inline void hri_ccl_toggle_CTRL_reg(const void *const hw, hri_ccl_ctrl_reg_t mask) in hri_ccl_toggle_CTRL_reg() argument 193 ((Ccl *)hw)->CTRL.reg ^= mask; in hri_ccl_toggle_CTRL_reg() 202 …void hri_ccl_set_SEQCTRL_SEQSEL_bf(const void *const hw, uint8_t index, hri_ccl_seqctrl_reg_t mask) in hri_ccl_set_SEQCTRL_SEQSEL_bf() argument 205 ((Ccl *)hw)->SEQCTRL[index].reg |= CCL_SEQCTRL_SEQSEL(mask); in hri_ccl_set_SEQCTRL_SEQSEL_bf() [all …]
|
D | hri_ac_l21.h | 158 static inline void hri_ac_set_INTEN_reg(const void *const hw, hri_ac_intenset_reg_t mask) in hri_ac_set_INTEN_reg() argument 160 ((Ac *)hw)->INTENSET.reg = mask; in hri_ac_set_INTEN_reg() 163 …inline hri_ac_intenset_reg_t hri_ac_get_INTEN_reg(const void *const hw, hri_ac_intenset_reg_t mask) in hri_ac_get_INTEN_reg() argument 167 tmp &= mask; in hri_ac_get_INTEN_reg() 182 static inline void hri_ac_clear_INTEN_reg(const void *const hw, hri_ac_intenset_reg_t mask) in hri_ac_clear_INTEN_reg() argument 184 ((Ac *)hw)->INTENCLR.reg = mask; in hri_ac_clear_INTEN_reg() 247 …inline hri_ac_intflag_reg_t hri_ac_get_INTFLAG_reg(const void *const hw, hri_ac_intflag_reg_t mask) in hri_ac_get_INTFLAG_reg() argument 251 tmp &= mask; in hri_ac_get_INTFLAG_reg() 260 static inline void hri_ac_clear_INTFLAG_reg(const void *const hw, hri_ac_intflag_reg_t mask) in hri_ac_clear_INTFLAG_reg() argument 262 ((Ac *)hw)->INTFLAG.reg = mask; in hri_ac_clear_INTFLAG_reg() [all …]
|
D | hri_osc32kctrl_l21.h | 118 … inline void hri_osc32kctrl_set_INTEN_reg(const void *const hw, hri_osc32kctrl_intenset_reg_t mask) in hri_osc32kctrl_set_INTEN_reg() argument 120 ((Osc32kctrl *)hw)->INTENSET.reg = mask; in hri_osc32kctrl_set_INTEN_reg() 124 … hri_osc32kctrl_intenset_reg_t mask) in hri_osc32kctrl_get_INTEN_reg() argument 128 tmp &= mask; in hri_osc32kctrl_get_INTEN_reg() 143 …nline void hri_osc32kctrl_clear_INTEN_reg(const void *const hw, hri_osc32kctrl_intenset_reg_t mask) in hri_osc32kctrl_clear_INTEN_reg() argument 145 ((Osc32kctrl *)hw)->INTENCLR.reg = mask; in hri_osc32kctrl_clear_INTEN_reg() 189 … hri_osc32kctrl_intflag_reg_t mask) in hri_osc32kctrl_get_INTFLAG_reg() argument 193 tmp &= mask; in hri_osc32kctrl_get_INTFLAG_reg() 202 …line void hri_osc32kctrl_clear_INTFLAG_reg(const void *const hw, hri_osc32kctrl_intflag_reg_t mask) in hri_osc32kctrl_clear_INTFLAG_reg() argument 204 ((Osc32kctrl *)hw)->INTFLAG.reg = mask; in hri_osc32kctrl_clear_INTFLAG_reg() [all …]
|
D | hri_rtc_l21.h | 131 hri_rtcalarm_alarm_reg_t mask) in hri_rtcalarm_set_ALARM_SECOND_bf() argument 134 ((RtcMode2 *)hw)->Mode2Alarm[submodule_index].ALARM.reg |= RTC_MODE2_ALARM_SECOND(mask); in hri_rtcalarm_set_ALARM_SECOND_bf() 139 … hri_rtcalarm_alarm_reg_t mask) in hri_rtcalarm_get_ALARM_SECOND_bf() argument 143 tmp = (tmp & RTC_MODE2_ALARM_SECOND(mask)) >> RTC_MODE2_ALARM_SECOND_Pos; in hri_rtcalarm_get_ALARM_SECOND_bf() 160 hri_rtcalarm_alarm_reg_t mask) in hri_rtcalarm_clear_ALARM_SECOND_bf() argument 163 ((RtcMode2 *)hw)->Mode2Alarm[submodule_index].ALARM.reg &= ~RTC_MODE2_ALARM_SECOND(mask); in hri_rtcalarm_clear_ALARM_SECOND_bf() 168 hri_rtcalarm_alarm_reg_t mask) in hri_rtcalarm_toggle_ALARM_SECOND_bf() argument 171 ((RtcMode2 *)hw)->Mode2Alarm[submodule_index].ALARM.reg ^= RTC_MODE2_ALARM_SECOND(mask); in hri_rtcalarm_toggle_ALARM_SECOND_bf() 184 hri_rtcalarm_alarm_reg_t mask) in hri_rtcalarm_set_ALARM_MINUTE_bf() argument 187 ((RtcMode2 *)hw)->Mode2Alarm[submodule_index].ALARM.reg |= RTC_MODE2_ALARM_MINUTE(mask); in hri_rtcalarm_set_ALARM_MINUTE_bf() [all …]
|
/loramac-node-3.7.0/src/boards/mcu/saml21/hal/utils/src/ |
D | utils_event.c | 57 const uint8_t mask = 1 << (id & 0x7); in event_subscribe() local 61 if (event->mask[position] & mask) { in event_subscribe() 66 memset(event->mask, 0, EVENT_MASK_SIZE); in event_subscribe() 70 event->mask[position] |= mask; in event_subscribe() 72 subscribed[position] |= mask; in event_subscribe() 81 const uint8_t mask = 1 << (id & 0x7); in event_unsubscribe() local 87 if (!(event->mask[position] & mask)) { in event_unsubscribe() 91 event->mask[position] &= ~mask; in event_unsubscribe() 96 if (current->mask[position] & mask) { in event_unsubscribe() 101 subscribed[position] &= ~mask; in event_unsubscribe() [all …]
|