/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | transition.c | 99 if (!set_transition_counter(ctl->transition)) { in set_transition_values() 103 if (ctl->transition->type == MOVE) { in set_transition_values() 104 ctl->transition->quo_tt = ctl->transition->total_duration; in set_transition_values() 108 ctl->transition->quo_tt = ctl->transition->total_duration / in set_transition_values() 109 ctl->transition->counter; in set_transition_values() 116 ctl->light->delta = in set_transition_values() 117 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() 118 ctl->transition->counter); in set_transition_values() 121 ctl->light->delta = in set_transition_values() 122 ((float) (ctl->light->current - ctl->light->target) / in set_transition_values() [all …]
|
D | state_binding.c | 44 if (light > 0 && light < ctl->light->range_min) { in constrain_lightness() 45 light = ctl->light->range_min; in constrain_lightness() 46 } else if (light > ctl->light->range_max) { in constrain_lightness() 47 light = ctl->light->range_max; in constrain_lightness() 56 if (ctl->light->target > 0 && in constrain_target_lightness2() 57 ctl->light->target < ctl->light->range_min) { in constrain_target_lightness2() 58 if (ctl->light->delta < 0) { in constrain_target_lightness2() 59 ctl->light->target = 0U; in constrain_target_lightness2() 61 ctl->light->target = ctl->light->range_min; in constrain_target_lightness2() 63 } else if (ctl->light->target > ctl->light->range_max) { in constrain_target_lightness2() [all …]
|
D | device_composition.c | 56 struct light_ctl_state *const ctl = &light_state; variable 78 if (ctl->light->current == ctl->light->target) { in gen_onoff_get() 82 if (ctl->transition->counter) { in gen_onoff_get() 83 calculate_rt(ctl->transition); in gen_onoff_get() 85 net_buf_simple_add_u8(msg, ctl->transition->rt); in gen_onoff_get() 108 if (ctl->transition->counter) { in gen_onoff_publish() 109 calculate_rt(ctl->transition); in gen_onoff_publish() 111 net_buf_simple_add_u8(msg, ctl->transition->rt); in gen_onoff_publish() 135 if (ctl->last_tid == tid && in gen_onoff_set_unack() 136 ctl->last_src_addr == ctx->addr && in gen_onoff_set_unack() [all …]
|
D | no_transition_work_handler.c | 47 if (ctl->light->target != ctl->light->current) { in no_transition_work_handler() 48 ctl->light->current = ctl->light->target; in no_transition_work_handler() 52 if (ctl->temp->target != ctl->temp->current) { in no_transition_work_handler() 53 ctl->temp->current = ctl->temp->target; in no_transition_work_handler() 57 if (ctl->duv->target != ctl->duv->current) { in no_transition_work_handler() 58 ctl->duv->current = ctl->duv->target; in no_transition_work_handler() 62 if (ctl->light->current) { in no_transition_work_handler() 63 ctl->light->last = ctl->light->current; in no_transition_work_handler()
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/ |
D | main.c | 22 ctl->tt = 0x00; in light_default_var_init() 24 ctl->onpowerup = STATE_DEFAULT; in light_default_var_init() 26 ctl->light->range_min = LIGHTNESS_MIN; in light_default_var_init() 27 ctl->light->range_max = LIGHTNESS_MAX; in light_default_var_init() 28 ctl->light->last = LIGHTNESS_MAX; in light_default_var_init() 29 ctl->light->def = LIGHTNESS_MAX; in light_default_var_init() 30 ctl->light->target = ctl->light->def; in light_default_var_init() 32 ctl->temp->range_min = TEMP_MIN; in light_default_var_init() 33 ctl->temp->range_max = TEMP_MAX; in light_default_var_init() 34 ctl->temp->def = TEMP_MAX; in light_default_var_init() [all …]
|
D | storage.c | 22 settings_save_one("ps/gdtt", &ctl->tt, sizeof(ctl->tt)); in save_gen_def_trans_time_state() 27 settings_save_one("ps/gpo", &ctl->onpowerup, sizeof(ctl->onpowerup)); in save_gen_onpowerup_state() 29 if (ctl->onpowerup == 0x02) { in save_gen_onpowerup_state() 36 settings_save_one("ps/ld", &ctl->light->def, sizeof(ctl->light->def)); in save_def_states() 37 settings_save_one("ps/td", &ctl->temp->def, sizeof(ctl->temp->def)); in save_def_states() 38 settings_save_one("ps/dd", &ctl->duv->def, sizeof(ctl->duv->def)); in save_def_states() 43 settings_save_one("ps/ll", &ctl->light->last, sizeof(ctl->light->last)); in save_lightness_last_state() 50 settings_save_one("ps/llt", &ctl->light->target, in save_last_target_states() 51 sizeof(ctl->light->target)); in save_last_target_states() 53 settings_save_one("ps/tlt", &ctl->temp->target, in save_last_target_states() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_gd32.c | 135 uint32_t ctl, pupd; in gpio_gd32_configure() local 137 ctl = GPIO_CTL(config->reg); in gpio_gd32_configure() 138 ctl &= ~GPIO_MODE_MASK(pin); in gpio_gd32_configure() 144 ctl |= GPIO_MODE_SET(pin, GPIO_MODE_OUTPUT); in gpio_gd32_configure() 162 ctl |= GPIO_MODE_SET(pin, GPIO_MODE_INPUT); in gpio_gd32_configure() 164 ctl |= GPIO_MODE_SET(pin, GPIO_MODE_ANALOG); in gpio_gd32_configure() 176 GPIO_CTL(config->reg) = ctl; in gpio_gd32_configure() 179 uint32_t ctl, pin_bit; in gpio_gd32_configure() local 190 ctl = *ctl_reg; in gpio_gd32_configure() 191 ctl &= ~GPIO_MODE_MASK(pin); in gpio_gd32_configure() [all …]
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_npcx.c | 91 uint32_t ctl; in pwm_npcx_set_cycles() local 96 ctl = inst->PWMCTL | BIT(NPCX_PWMCTL_PWR); in pwm_npcx_set_cycles() 100 ctl |= BIT(NPCX_PWMCTL_INVP); in pwm_npcx_set_cycles() 102 ctl &= ~BIT(NPCX_PWMCTL_INVP); in pwm_npcx_set_cycles() 107 ctl &= ~BIT(NPCX_PWMCTL_PWR); in pwm_npcx_set_cycles() 108 inst->PWMCTL = ctl; in pwm_npcx_set_cycles() 135 if (inst->PWMCTL != ctl || inst->PRSC != prsc || inst->CTR != ctr) { in pwm_npcx_set_cycles() 144 inst->PWMCTL = ctl; in pwm_npcx_set_cycles()
|
/Zephyr-latest/soc/intel/intel_adsp/ace/ |
D | multiprocessing.c | 104 IDC[i].agents[0].ipc.ctl = BIT(0); /* IPCTBIE */ in soc_mp_init() 170 DSPCS.capctl[cpu_num].ctl &= ~DSPCS_CTL_SPA; in soc_start_core() 173 if (!WAIT_FOR((DSPCS.capctl[cpu_num].ctl & DSPCS_CTL_CPA) != DSPCS_CTL_CPA, in soc_start_core() 178 DSPCS.capctl[cpu_num].ctl |= DSPCS_CTL_SPA; in soc_start_core() 182 while (((DSPCS.capctl[cpu_num].ctl & DSPCS_CTL_CPA) != DSPCS_CTL_CPA) && in soc_start_core() 271 DSPCS.capctl[id].ctl &= ~DSPCS_CTL_SPA; in soc_adsp_halt_cpu() 274 while (((DSPCS.capctl[id].ctl & DSPCS_CTL_CPA) == DSPCS_CTL_CPA) && in soc_adsp_halt_cpu()
|
/Zephyr-latest/drivers/dma/ |
D | dma_dw_axi.c | 156 uint64_t ctl; member 372 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_8); in dma_dw_axi_set_data_width() 376 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_16); in dma_dw_axi_set_data_width() 380 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_32); in dma_dw_axi_set_data_width() 384 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_64); in dma_dw_axi_set_data_width() 388 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_128); in dma_dw_axi_set_data_width() 392 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_256); in dma_dw_axi_set_data_width() 396 lli_desc->ctl |= DMA_DW_AXI_CTL_SRC_WIDTH(BITS_512); in dma_dw_axi_set_data_width() 406 lli_desc->ctl |= DMA_DW_AXI_CTL_DST_WIDTH(BITS_8); in dma_dw_axi_set_data_width() 410 lli_desc->ctl |= DMA_DW_AXI_CTL_DST_WIDTH(BITS_16); in dma_dw_axi_set_data_width() [all …]
|
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | testing.h | 25 void (*net_recv)(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst, const void *payload, 81 void bt_mesh_test_net_recv(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst,
|
D | transport.c | 86 ctl:1, /* Control packet */ member 106 ctl:1, member 174 static inline uint8_t seg_len(bool ctl) in seg_len() argument 176 if (ctl) { in seg_len() 347 uint8_t len = MIN(seg_len(tx->ctl), tx->len - (seg_len(tx->ctl) * seg_o)); in seg_tx_buf_build() 367 .app_idx = (tx->ctl ? BT_MESH_KEY_UNUSED : 0), in seg_tx_send_unacked() 537 tx->ctl = !!ctl_op; in send_seg() 726 MIN(seg_len(rx->ctl), in seg_rx_assemble() 727 rx->len - (i * seg_len(rx->ctl)))); in seg_rx_assemble() 731 if (!rx->ctl) { in seg_rx_assemble() [all …]
|
D | testing.c | 40 void bt_mesh_test_net_recv(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst, in bt_mesh_test_net_recv() argument 47 cb->net_recv(ttl, ctl, src, dst, payload, payload_len); in bt_mesh_test_net_recv()
|
/Zephyr-latest/soc/intel/intel_adsp/cavs/include/cavs25/ |
D | adsp_ipc_regs.h | 24 uint32_t ctl; member
|
/Zephyr-latest/drivers/serial/ |
D | uart_stellaris.c | 48 uint32_t ctl; member 165 config->uart->ctl |= UARTCTL_UARTEN; in enable() 179 config->uart->ctl &= ~UARTCTL_UARTEN; in disable() 374 saved_ctl = config->uart->ctl; in uart_stellaris_irq_tx_enable() 383 config->uart->ctl = (UARTCTL_UARTEN | UARTCTL_TXEN | UARTCTL_LBE); in uart_stellaris_irq_tx_enable() 394 config->uart->ctl = saved_ctl; in uart_stellaris_irq_tx_enable()
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ace15_mtpm/ |
D | adsp_ipc_regs.h | 31 uint32_t ctl; member
|
D | adsp_boot.h | 23 uint32_t ctl; member
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ace20_lnl/ |
D | adsp_ipc_regs.h | 31 uint32_t ctl; member
|
D | adsp_boot.h | 23 uint32_t ctl; member
|
/Zephyr-latest/soc/intel/intel_adsp/ace/include/ace30/ |
D | adsp_ipc_regs.h | 31 uint32_t ctl; member
|
D | adsp_boot.h | 23 uint32_t ctl; member
|
/Zephyr-latest/dts/arm/nuvoton/npcx/npcx7/ |
D | npcx7-pinctrl.dtsi | 10 dev-ctl = <0x0 2 2 0x01>; 14 dev-ctl = <0x0 2 2 0x02>; 18 dev-ctl = <0x0 6 1 0x00>; 22 dev-ctl = <0x0 6 1 0x01>; 26 dev-ctl = <0x6 3 1 0x00>; 30 dev-ctl = <0x6 3 1 0x01>; 36 dev-ctl = <0x6 1 1 0x00>; /* Select to external flash */ 41 dev-ctl = <0x6 1 1 0x01>; /* Select to internal flash */
|
/Zephyr-latest/soc/nuvoton/npcx/common/ |
D | soc_dt.h | 65 .ctrl = DT_PHA(DT_DRV_INST(inst), clocks, ctl), \ 79 .ctrl = DT_CLOCKS_CELL_BY_IDX(DT_DRV_INST(inst), i, ctl), \ 93 .ctrl = DT_CLOCKS_CELL_BY_NAME(DT_DRV_INST(inst), name, ctl), \
|
/Zephyr-latest/dts/arm/nuvoton/npcx/npcx4/ |
D | npcx4-pinctrl.dtsi | 10 dev-ctl = <0x0 2 2 0x01>; 14 dev-ctl = <0x0 2 2 0x02>; 18 dev-ctl = <0x0 4 2 0x01>; 22 dev-ctl = <0x0 4 2 0x02>; 26 dev-ctl = <0x0 6 1 0x00>; 30 dev-ctl = <0x0 6 1 0x01>; 34 dev-ctl = <0x4 6 2 0x00>; 38 dev-ctl = <0x4 6 2 0x01>; 42 dev-ctl = <0x4 6 2 0x02>; 46 dev-ctl = <0x4 6 2 0x03>;
|
/Zephyr-latest/dts/arm/nuvoton/npcx/npcx9/ |
D | npcx9-pinctrl.dtsi | 11 dev-ctl = <0x0 2 2 0x01>; 15 dev-ctl = <0x0 2 2 0x02>; 19 dev-ctl = <0x0 6 1 0x00>; 23 dev-ctl = <0x0 6 1 0x01>; 27 dev-ctl = <0x6 3 1 0x00>; 31 dev-ctl = <0x6 3 1 0x01>; 37 dev-ctl = <0x6 1 1 0x00>; /* Select to external flash */ 46 dev-ctl = <0x6 1 1 0x01>; /* Select to internal flash */
|