Home
last modified time | relevance | path

Searched refs:regval (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-2.7.6/drivers/dac/
Ddac_dacx0508.c123 uint8_t regval[2] = {0, }; in dacx0508_reg_update() local
127 ret = dacx0508_reg_read(dev, addr, regval); in dacx0508_reg_update()
131 tmp = (regval[0] << 8) | regval[1]; in dacx0508_reg_update()
139 regval[0] = tmp >> 8; in dacx0508_reg_update()
140 regval[1] = tmp & 0xFF; in dacx0508_reg_update()
142 ret = dacx0508_reg_write(dev, addr, regval); in dacx0508_reg_update()
176 uint8_t regval[2]; in dacx0508_write_value() local
195 regval[0] = value >> 8; in dacx0508_write_value()
196 regval[1] = value & 0xFF; in dacx0508_write_value()
198 ret = dacx0508_reg_write(dev, DACX0508_REG_DAC0 + channel, regval); in dacx0508_write_value()
[all …]
Ddac_dacx3608.c71 uint16_t regval; in dacx3608_reg_update() local
74 ret = dacx3608_reg_read(dev, reg, &regval); in dacx3608_reg_update()
80 regval |= mask; in dacx3608_reg_update()
82 regval &= ~mask; in dacx3608_reg_update()
85 ret = dacx3608_reg_write(dev, reg, regval); in dacx3608_reg_update()
136 uint16_t regval; in dacx3608_write_value() local
163 regval = value << 2; in dacx3608_write_value()
164 regval &= 0xFFFF; in dacx3608_write_value()
166 ret = dacx3608_reg_write(dev, DACX3608_REG_DACA_DATA + channel, regval); in dacx3608_write_value()
177 uint16_t regval = DACX3608_SW_RST; in dacx3608_soft_reset() local
[all …]
/Zephyr-Core-2.7.6/drivers/usb/device/
Dusb_dc_sam_usbhs.c303 uint32_t regval; in usb_dc_attach() local
314 regval = USBHS_DEVCTRL_DETACH; in usb_dc_attach()
317 regval |= USBHS_DEVCTRL_LS; in usb_dc_attach()
318 regval |= USBHS_DEVCTRL_SPDCONF_LOW_POWER; in usb_dc_attach()
321 regval |= USBHS_DEVCTRL_SPDCONF_LOW_POWER; in usb_dc_attach()
324 regval |= USBHS_DEVCTRL_SPDCONF_NORMAL; in usb_dc_attach()
328 USBHS->USBHS_DEVCTRL = regval; in usb_dc_attach()
455 uint32_t regval = 0U; in usb_dc_ep_configure() local
481 regval |= USBHS_DEVEPTCFG_EPTYPE_CTRL; in usb_dc_ep_configure()
484 regval |= USBHS_DEVEPTCFG_EPTYPE_ISO; in usb_dc_ep_configure()
[all …]
Dusb_dc_sam_usbc.c661 uint32_t regval; in usb_dc_attach() local
700 regval = USBC_UDCON_DETACH; in usb_dc_attach()
704 WRITE_BIT(regval, USBC_UDCON_LS_Pos, 0); in usb_dc_attach()
707 WRITE_BIT(regval, USBC_UDCON_LS_Pos, 1); in usb_dc_attach()
710 WRITE_BIT(regval, USBC_UDCON_LS_Pos, 0); in usb_dc_attach()
716 regs->UDCON = regval; in usb_dc_attach()
868 uint32_t regval = 0U; in usb_dc_ep_configure() local
890 regval |= USBC_UECFG0_EPTYPE_CONTROL; in usb_dc_ep_configure()
893 regval |= USBC_UECFG0_EPTYPE_ISOCHRONOUS; in usb_dc_ep_configure()
896 regval |= USBC_UECFG0_EPTYPE_BULK; in usb_dc_ep_configure()
[all …]
/Zephyr-Core-2.7.6/drivers/sensor/bmm150/
Dbmm150.h66 #define BMM150_REGVAL_TO_REPXY(regval) (((regval) * 2) + 1) argument
67 #define BMM150_REGVAL_TO_REPZ(regval) ((regval) + 1) argument
/Zephyr-Core-2.7.6/drivers/sensor/bmc150_magn/
Dbmc150_magn.h57 #define BMC150_MAGN_REGVAL_TO_REPXY(regval) (((regval) * 2) + 1) argument
58 #define BMC150_MAGN_REGVAL_TO_REPZ(regval) ((regval) + 1) argument
/Zephyr-Core-2.7.6/include/arch/arc/v2/
Darc_connect.h167 struct arc_connect_cmd regval; in z_arc_connect_cmd() local
169 regval.pad = 0; in z_arc_connect_cmd()
170 regval.cmd = cmd; in z_arc_connect_cmd()
171 regval.param = param; in z_arc_connect_cmd()
173 z_arc_v2_aux_reg_write(_ARC_V2_CONNECT_CMD, regval.val); in z_arc_connect_cmd()
/Zephyr-Core-2.7.6/drivers/i2c/
Di2c_cc32xx.c333 uint32_t regval; in i2c_cc32xx_init() local
348 regval = HWREG(COMMON_REG_BASE); in i2c_cc32xx_init()
349 regval = (regval & ~I2C_SEM_MASK) | (0x01 << I2C_SEM_TAKE); in i2c_cc32xx_init()
350 HWREG(COMMON_REG_BASE) = regval; in i2c_cc32xx_init()
/Zephyr-Core-2.7.6/drivers/serial/
Duart_xlnx_ps.c177 uint32_t regval; in xlnx_ps_disable_uart() local
179 regval = sys_read32(reg_base + XUARTPS_CR_OFFSET); in xlnx_ps_disable_uart()
180 regval &= (~XUARTPS_CR_EN_DIS_MASK); in xlnx_ps_disable_uart()
182 regval |= XUARTPS_CR_TX_DIS | XUARTPS_CR_RX_DIS; in xlnx_ps_disable_uart()
183 sys_write32(regval, reg_base + XUARTPS_CR_OFFSET); in xlnx_ps_disable_uart()
202 uint32_t regval; in xlnx_ps_enable_uart() local
204 regval = sys_read32(reg_base + XUARTPS_CR_OFFSET); in xlnx_ps_enable_uart()
205 regval &= (~XUARTPS_CR_EN_DIS_MASK); in xlnx_ps_enable_uart()
207 regval |= XUARTPS_CR_TX_EN | XUARTPS_CR_RX_EN; in xlnx_ps_enable_uart()
208 sys_write32(regval, reg_base + XUARTPS_CR_OFFSET); in xlnx_ps_enable_uart()
/Zephyr-Core-2.7.6/drivers/ieee802154/
Dieee802154_rf2xx_iface.c61 uint8_t regval = 0; in rf2xx_iface_reg_read() local
79 .buf = &regval, in rf2xx_iface_reg_read()
94 (addr & ~(RF2XX_RF_CMD_REG_R)), status, regval); in rf2xx_iface_reg_read()
96 return regval; in rf2xx_iface_reg_read()
/Zephyr-Core-2.7.6/drivers/sensor/lis2dw12/
Dlis2dw12.c222 uint8_t regval = LIS2DW12_CONT_LOW_PWR_12bit; in lis2dw12_set_power_mode() local
229 regval = pm; in lis2dw12_set_power_mode()
236 return lis2dw12_write_reg(ctx, LIS2DW12_CTRL1, &regval, 1); in lis2dw12_set_power_mode()
/Zephyr-Core-2.7.6/drivers/sensor/iis2dlpc/
Diis2dlpc.c219 uint8_t regval = IIS2DLPC_CONT_LOW_PWR_12bit; in iis2dlpc_set_power_mode() local
226 regval = pm; in iis2dlpc_set_power_mode()
233 return iis2dlpc_write_reg(ctx, IIS2DLPC_CTRL1, &regval, 1); in iis2dlpc_set_power_mode()
/Zephyr-Core-2.7.6/drivers/lora/
Dsx127x.c592 uint8_t regval; in sx127x_lora_init() local
635 ret = sx127x_read(REG_VERSION, &regval, 1); in sx127x_lora_init()
641 LOG_INF("SX127x version 0x%02x found", regval); in sx127x_lora_init()