Lines Matching refs:obj
243 static inline uint8_t _cyhal_dma_dmac_get_cfg_offset(const cyhal_dma_t* obj) in _cyhal_dma_dmac_get_cfg_offset() argument
245 return (obj->resource.block_num * NUM_DMAC0_CHANNELS) + obj->resource.channel_num; in _cyhal_dma_dmac_get_cfg_offset()
249 static inline void _cyhal_dma_dmac_set_obj(cyhal_dma_t *obj) in _cyhal_dma_dmac_set_obj() argument
251 _cyhal_dma_dmac_config_structs[_cyhal_dma_dmac_get_cfg_offset(obj)] = obj; in _cyhal_dma_dmac_set_obj()
255 static inline void _cyhal_dma_dmac_free_obj(cyhal_dma_t *obj) in _cyhal_dma_dmac_free_obj() argument
257 _cyhal_dma_dmac_config_structs[_cyhal_dma_dmac_get_cfg_offset(obj)] = NULL; in _cyhal_dma_dmac_free_obj()
310 static inline _cyhal_system_irq_t _cyhal_dma_dmac_get_irqn(cyhal_dma_t *obj) in _cyhal_dma_dmac_get_irqn() argument
313 CY_UNUSED_PARAMETER(obj); in _cyhal_dma_dmac_get_irqn()
317 return (_cyhal_system_irq_t)((uint8_t)DMAC0_IRQn + _cyhal_dma_dmac_get_cfg_offset(obj)); in _cyhal_dma_dmac_get_irqn()
385 static inline cyhal_dma_event_t _cyhal_dma_dmac_convert_interrupt_cause(cyhal_dma_t *obj, uint32_t … in _cyhal_dma_dmac_convert_interrupt_cause() argument
406 if ((uint32_t)(hal_rslt & CYHAL_DMA_TRANSFER_COMPLETE) > 0 && obj->expected_bursts > 0) in _cyhal_dma_dmac_convert_interrupt_cause()
408 obj->expected_bursts--; in _cyhal_dma_dmac_convert_interrupt_cause()
409 if (0 == obj->expected_bursts) in _cyhal_dma_dmac_convert_interrupt_cause()
413 …obj->expected_bursts = (GET_RESOURCE_DATA(obj->descriptor_config).interruptType == _CYHAL_DMAC_X_L… in _cyhal_dma_dmac_convert_interrupt_cause()
414 ? GET_RESOURCE_DATA(obj->descriptor_config).yCount in _cyhal_dma_dmac_convert_interrupt_cause()
417 …obj->expected_bursts = (GET_RESOURCE_DATA(obj->descriptor_config).interruptType == _CYHAL_DMAC_M_L… in _cyhal_dma_dmac_convert_interrupt_cause()
418 ? GET_RESOURCE_DATA(obj->descriptor_config).xCount in _cyhal_dma_dmac_convert_interrupt_cause()
421 obj->expected_bursts = 1; in _cyhal_dma_dmac_convert_interrupt_cause()
443 cyhal_dma_t *obj = _cyhal_dma_dmac_get_obj(block, channel); in _cyhal_dma_dmac_irq_handler() local
447 cyhal_dma_event_t event_type = _cyhal_dma_dmac_convert_interrupt_cause(obj, cause); in _cyhal_dma_dmac_irq_handler()
448 uint32_t events_to_callback = event_type & obj->irq_cause; in _cyhal_dma_dmac_irq_handler()
449 if(obj->callback_data.callback != NULL && events_to_callback) in _cyhal_dma_dmac_irq_handler()
451 …((cyhal_dma_event_callback_t)obj->callback_data.callback)(obj->callback_data.callback_arg, (cyhal_… in _cyhal_dma_dmac_irq_handler()
464 cyhal_dma_t *obj = _cyhal_dma_dmac_get_obj(block, i); in _cyhal_dma_dmac_irq_handler() local
465 if (obj != NULL) in _cyhal_dma_dmac_irq_handler()
467 if (((channels & (1 << i)) != 0) && (obj->callback_data.callback != NULL)) in _cyhal_dma_dmac_irq_handler()
469 …((cyhal_dma_event_callback_t)obj->callback_data.callback)(obj->callback_data.callback_arg, CYHAL_D… in _cyhal_dma_dmac_irq_handler()
495 static cy_rslt_t _cyhal_dma_dmac_stage(cyhal_dma_t *obj) in _cyhal_dma_dmac_stage() argument
497 cyhal_dmac_hw_type* base = _cyhal_dma_dmac_get_base(obj->resource.block_num); in _cyhal_dma_dmac_stage()
500 SCB_CleanDCache_by_Addr((void *)&(obj->descriptor), sizeof(obj->descriptor)); in _cyhal_dma_dmac_stage()
503 …cy_en_axidmac_descriptor_type_t descr_type = GET_RESOURCE_DATA(&obj->descriptor_config)->descripto… in _cyhal_dma_dmac_stage()
504 GET_RESOURCE_DATA(&obj->descriptor_config)->descriptorType = CY_AXIDMAC_3D_MEMORY_COPY; in _cyhal_dma_dmac_stage()
505 …_t rslt = Cy_AXIDMAC_Descriptor_Init(GET_RESOURCE_DATA(&obj->descriptor), GET_RESOURCE_DATA(&obj->… in _cyhal_dma_dmac_stage()
506 Cy_AXIDMAC_Descriptor_SetDescriptorType(GET_RESOURCE_DATA(&obj->descriptor), descr_type); in _cyhal_dma_dmac_stage()
507 GET_RESOURCE_DATA(&obj->descriptor_config)->descriptorType = descr_type; in _cyhal_dma_dmac_stage()
509 …slt_t rslt = Cy_DMAC_Descriptor_Init(GET_RESOURCE_DATA(&obj->descriptor), GET_RESOURCE_DATA(&obj->… in _cyhal_dma_dmac_stage()
512 …slt_t rslt = Cy_DMAC_Descriptor_Init(base, obj->resource.channel_num, obj->descriptor, GET_RESOURC… in _cyhal_dma_dmac_stage()
523 SCB_CleanDCache_by_Addr((void *)&(obj->channel_config), sizeof(obj->channel_config)); in _cyhal_dma_dmac_stage()
526 …CY_AXIDMAC_SUCCESS != Cy_AXIDMAC_Channel_Init(base, obj->resource.channel_num, GET_RESOURCE_DATA(&… in _cyhal_dma_dmac_stage()
528 …if(CY_DMAC_SUCCESS != Cy_DMAC_Channel_Init(base, obj->resource.channel_num, GET_RESOURCE_DATA(&obj… in _cyhal_dma_dmac_stage()
533 Cy_AXIDMAC_Channel_SetInterruptMask(base, obj->resource.channel_num, CY_AXIDMAC_INTR_MASK); in _cyhal_dma_dmac_stage()
535 Cy_DMAC_Channel_SetInterruptMask(base, obj->resource.channel_num, CY_DMAC_INTR_MASK); in _cyhal_dma_dmac_stage()
546 uint32_t status = Cy_AXIDMAC_Channel_GetInterruptStatus(base, obj->resource.channel_num); in _cyhal_dma_dmac_stage()
550 Cy_AXIDMAC_Channel_ClearInterrupt(base, obj->resource.channel_num, CY_AXIDMAC_INTR_MASK); in _cyhal_dma_dmac_stage()
556 uint32_t status = Cy_DMAC_Channel_GetInterruptStatus(base, obj->resource.channel_num); in _cyhal_dma_dmac_stage()
561 Cy_DMAC_Channel_ClearInterrupt(base, obj->resource.channel_num, CY_DMAC_INTR_MASK); in _cyhal_dma_dmac_stage()
567 _cyhal_system_irq_t irqn = _cyhal_dma_dmac_get_irqn(obj); in _cyhal_dma_dmac_stage()
568 uint32_t priority = (CYHAL_DMA_NO_INTR == obj->irq_cause) in _cyhal_dma_dmac_stage()
579 cy_rslt_t _cyhal_dma_dmac_init(cyhal_dma_t *obj, cyhal_source_t *src, cyhal_dest_t *dest, uint8_t p… in _cyhal_dma_dmac_init() argument
595 … CYHAL_RSC_DMA, src, dest, _cyhal_dma_dmac_get_src, _cyhal_dma_dmac_get_dest, &obj->resource); in _cyhal_dma_dmac_init()
599 obj->callback_data.callback = NULL; in _cyhal_dma_dmac_init()
602 GET_RESOURCE_DATA(obj->descriptor_config) = _cyhal_dma_dmac_default_descriptor_config; in _cyhal_dma_dmac_init()
603 GET_RESOURCE_DATA(obj->channel_config) = _cyhal_dma_dmac_default_channel_config; in _cyhal_dma_dmac_init()
605 GET_RESOURCE_DATA(obj->channel_config).descriptor = GET_RESOURCE_DATA(&obj->descriptor); in _cyhal_dma_dmac_init()
607 obj->descriptor = obj->channel_config.descriptor; in _cyhal_dma_dmac_init()
609 GET_RESOURCE_DATA(obj->channel_config).priority = priority; in _cyhal_dma_dmac_init()
618 _cyhal_dma_dmac_set_obj(obj); in _cyhal_dma_dmac_init()
623 cy_rslt_t _cyhal_dma_dmac_init_cfg(cyhal_dma_t *obj, const cyhal_dma_configurator_t *cfg) in _cyhal_dma_dmac_init_cfg() argument
630 obj->resource = *(cfg->resource); in _cyhal_dma_dmac_init_cfg()
631 obj->callback_data.callback = NULL; in _cyhal_dma_dmac_init_cfg()
635 obj->descriptor_config.dmac = *(cfg->dmac_descriptor_config); in _cyhal_dma_dmac_init_cfg()
636 obj->channel_config.dmac = *(cfg->dmac_channel_config); in _cyhal_dma_dmac_init_cfg()
637 GET_RESOURCE_DATA(obj->channel_config).descriptor = GET_RESOURCE_DATA(&obj->descriptor); in _cyhal_dma_dmac_init_cfg()
639 obj->expected_bursts = cfg->dmac_descriptor_config->xCount; in _cyhal_dma_dmac_init_cfg()
641 obj->expected_bursts = cfg->dmac_descriptor_config->yCount; in _cyhal_dma_dmac_init_cfg()
644 obj->descriptor_config = *(cfg->descriptor_config); in _cyhal_dma_dmac_init_cfg()
645 obj->channel_config = *(cfg->channel_config); in _cyhal_dma_dmac_init_cfg()
646 obj->descriptor = obj->channel_config.descriptor; in _cyhal_dma_dmac_init_cfg()
647 obj->expected_bursts = 1; in _cyhal_dma_dmac_init_cfg()
657 _cyhal_dma_dmac_set_obj(obj); in _cyhal_dma_dmac_init_cfg()
659 return _cyhal_dma_dmac_stage(obj); in _cyhal_dma_dmac_init_cfg()
662 void _cyhal_dma_dmac_free(cyhal_dma_t *obj) in _cyhal_dma_dmac_free() argument
664 cyhal_dmac_hw_type* base = _cyhal_dma_dmac_get_base(obj->resource.block_num); in _cyhal_dma_dmac_free()
666 Cy_DMAC_Descriptor_DeInit(GET_RESOURCE_DATA(&obj->descriptor)); in _cyhal_dma_dmac_free()
667 Cy_DMAC_Channel_DeInit(base, obj->resource.channel_num); in _cyhal_dma_dmac_free()
669 Cy_DMAC_Descriptor_DeInit(base, obj->resource.channel_num, obj->descriptor); in _cyhal_dma_dmac_free()
670 Cy_DMAC_Channel_DeInit(base, obj->resource.channel_num); in _cyhal_dma_dmac_free()
672 Cy_AXIDMAC_Descriptor_DeInit(GET_RESOURCE_DATA(&obj->descriptor)); in _cyhal_dma_dmac_free()
673 Cy_AXIDMAC_Channel_DeInit(base, obj->resource.channel_num); in _cyhal_dma_dmac_free()
676 _cyhal_irq_free(_cyhal_dma_dmac_get_irqn(obj)); in _cyhal_dma_dmac_free()
678 _cyhal_dma_dmac_free_obj(obj); in _cyhal_dma_dmac_free()
691 cy_rslt_t _cyhal_dma_dmac_configure(cyhal_dma_t *obj, const cyhal_dma_cfg_t *cfg) in _cyhal_dma_dmac_configure() argument
696 if(_cyhal_dma_dmac_is_busy(obj)) in _cyhal_dma_dmac_configure()
718 GET_RESOURCE_DATA(obj->descriptor_config).srcAddress = (void*)cfg->src_addr; in _cyhal_dma_dmac_configure()
719 GET_RESOURCE_DATA(obj->descriptor_config).dstAddress = (void*)cfg->dst_addr; in _cyhal_dma_dmac_configure()
728 GET_RESOURCE_DATA(obj->descriptor_config).dataSize = CY_DMAC_BYTE; in _cyhal_dma_dmac_configure()
730 GET_RESOURCE_DATA(obj->descriptor_config).dataSize = CY_DMAC_HALFWORD; in _cyhal_dma_dmac_configure()
732 GET_RESOURCE_DATA(obj->descriptor_config).dataSize = CY_DMAC_WORD; in _cyhal_dma_dmac_configure()
738 GET_RESOURCE_DATA(obj->descriptor_config).srcTransferSize = in _cyhal_dma_dmac_configure()
739 GET_RESOURCE_DATA(obj->descriptor_config).dstTransferSize = CY_DMAC_TRANSFER_SIZE_DATA; in _cyhal_dma_dmac_configure()
740 if (obj->direction == CYHAL_DMA_DIRECTION_PERIPH2MEM) in _cyhal_dma_dmac_configure()
741 GET_RESOURCE_DATA(obj->descriptor_config).srcTransferSize = CY_DMAC_TRANSFER_SIZE_WORD; in _cyhal_dma_dmac_configure()
742 else if (obj->direction == CYHAL_DMA_DIRECTION_MEM2PERIPH) in _cyhal_dma_dmac_configure()
743 GET_RESOURCE_DATA(obj->descriptor_config).dstTransferSize = CY_DMAC_TRANSFER_SIZE_WORD; in _cyhal_dma_dmac_configure()
754 GET_RESOURCE_DATA(obj->descriptor_config).nextDescriptor = GET_RESOURCE_DATA(&obj->descriptor); in _cyhal_dma_dmac_configure()
757 GET_RESOURCE_DATA(obj->descriptor_config).channelState = _CYHAL_DMAC_CHANNEL_ENABLED; in _cyhal_dma_dmac_configure()
761 GET_RESOURCE_DATA(obj->descriptor_config).channelState = _CYHAL_DMAC_CHANNEL_DISABLED; in _cyhal_dma_dmac_configure()
764 GET_RESOURCE_DATA(obj->descriptor_config).srcXincrement = cfg->src_increment; in _cyhal_dma_dmac_configure()
765 GET_RESOURCE_DATA(obj->descriptor_config).dstXincrement = cfg->dst_increment; in _cyhal_dma_dmac_configure()
776 GET_RESOURCE_DATA(obj->descriptor_config).descriptorType = CY_AXIDMAC_2D_MEMORY_COPY; in _cyhal_dma_dmac_configure()
777 … GET_RESOURCE_DATA(obj->descriptor_config).mCount = cfg->burst_size * (cfg->transfer_width / 8); in _cyhal_dma_dmac_configure()
778 GET_RESOURCE_DATA(obj->descriptor_config).xCount = (cfg->length / cfg->burst_size); in _cyhal_dma_dmac_configure()
779 …GET_RESOURCE_DATA(obj->descriptor_config).srcXincrement = cfg->src_increment * cfg->burst_size * (… in _cyhal_dma_dmac_configure()
780 …GET_RESOURCE_DATA(obj->descriptor_config).dstXincrement = cfg->dst_increment * cfg->burst_size * (… in _cyhal_dma_dmac_configure()
782 GET_RESOURCE_DATA(obj->descriptor_config).descriptorType = CY_DMAC_2D_TRANSFER; in _cyhal_dma_dmac_configure()
783 GET_RESOURCE_DATA(obj->descriptor_config).xCount = cfg->burst_size; in _cyhal_dma_dmac_configure()
784 GET_RESOURCE_DATA(obj->descriptor_config).yCount = total_length / cfg->burst_size; in _cyhal_dma_dmac_configure()
785 … GET_RESOURCE_DATA(obj->descriptor_config).srcYincrement = cfg->src_increment * cfg->burst_size; in _cyhal_dma_dmac_configure()
786 … GET_RESOURCE_DATA(obj->descriptor_config).dstYincrement = cfg->dst_increment * cfg->burst_size; in _cyhal_dma_dmac_configure()
793 GET_RESOURCE_DATA(obj->descriptor_config).descriptorType = CY_AXIDMAC_1D_MEMORY_COPY; in _cyhal_dma_dmac_configure()
794 GET_RESOURCE_DATA(obj->descriptor_config).mCount = total_length; in _cyhal_dma_dmac_configure()
796 GET_RESOURCE_DATA(obj->descriptor_config).descriptorType = CY_DMAC_1D_TRANSFER; in _cyhal_dma_dmac_configure()
797 GET_RESOURCE_DATA(obj->descriptor_config).xCount = total_length; in _cyhal_dma_dmac_configure()
806 obj->expected_bursts = GET_RESOURCE_DATA(obj->descriptor_config).xCount; in _cyhal_dma_dmac_configure()
807 GET_RESOURCE_DATA(obj->descriptor_config).interruptType = _CYHAL_DMAC_M_LOOP; in _cyhal_dma_dmac_configure()
808 if (obj->source == _CYHAL_TRIGGER_CPUSS_ZERO) // If not overridden by connect_digital() in _cyhal_dma_dmac_configure()
809 GET_RESOURCE_DATA(obj->descriptor_config).triggerInType = _CYHAL_DMAC_M_LOOP; in _cyhal_dma_dmac_configure()
811 obj->expected_bursts = GET_RESOURCE_DATA(obj->descriptor_config).yCount; in _cyhal_dma_dmac_configure()
812 GET_RESOURCE_DATA(obj->descriptor_config).interruptType = _CYHAL_DMAC_X_LOOP; in _cyhal_dma_dmac_configure()
813 if (obj->source == _CYHAL_TRIGGER_CPUSS_ZERO) // If not overridden by connect_digital() in _cyhal_dma_dmac_configure()
814 GET_RESOURCE_DATA(obj->descriptor_config).triggerInType = _CYHAL_DMAC_X_LOOP; in _cyhal_dma_dmac_configure()
819 obj->expected_bursts = 1; in _cyhal_dma_dmac_configure()
820 GET_RESOURCE_DATA(obj->descriptor_config).interruptType = _CYHAL_DMAC_DESCR; in _cyhal_dma_dmac_configure()
821 if (obj->source == _CYHAL_TRIGGER_CPUSS_ZERO) // If not overridden by connect_digital() in _cyhal_dma_dmac_configure()
822 GET_RESOURCE_DATA(obj->descriptor_config).triggerInType = _CYHAL_DMAC_DESCR; in _cyhal_dma_dmac_configure()
831 GET_RESOURCE_DATA(obj->descriptor_config).dataCount = total_length; in _cyhal_dma_dmac_configure()
832 GET_RESOURCE_DATA(obj->descriptor_config).srcAddrIncrement = cfg->src_increment; in _cyhal_dma_dmac_configure()
833 GET_RESOURCE_DATA(obj->descriptor_config).dstAddrIncrement = cfg->dst_increment; in _cyhal_dma_dmac_configure()
834 obj->expected_bursts = 1; in _cyhal_dma_dmac_configure()
838 return _cyhal_dma_dmac_stage(obj); in _cyhal_dma_dmac_configure()
841 cy_rslt_t _cyhal_dma_dmac_enable(cyhal_dma_t *obj) in _cyhal_dma_dmac_enable() argument
843 cyhal_dmac_hw_type* base = _cyhal_dma_dmac_get_base(obj->resource.block_num); in _cyhal_dma_dmac_enable()
844 _cyhal_dmac_channel_enable(base, obj->resource.channel_num); in _cyhal_dma_dmac_enable()
848 cy_rslt_t _cyhal_dma_dmac_disable(cyhal_dma_t *obj) in _cyhal_dma_dmac_disable() argument
850 cyhal_dmac_hw_type* base = _cyhal_dma_dmac_get_base(obj->resource.block_num); in _cyhal_dma_dmac_disable()
851 _cyhal_dmac_channel_disable(base, obj->resource.channel_num); in _cyhal_dma_dmac_disable()
855 cy_rslt_t _cyhal_dma_dmac_start_transfer(cyhal_dma_t *obj) in _cyhal_dma_dmac_start_transfer() argument
858 if(_cyhal_dma_dmac_is_busy(obj)) in _cyhal_dma_dmac_start_transfer()
864 …uint32_t trigline = _cyhal_dma_dmac_get_trigger_line(obj->resource.block_num, obj->resource.channe… in _cyhal_dma_dmac_start_transfer()
875 void _cyhal_dma_dmac_enable_event(cyhal_dma_t *obj, cyhal_dma_event_t event, uint8_t intr_priority,… in _cyhal_dma_dmac_enable_event() argument
878 DMAC_Type *base = _cyhal_dma_dmac_get_base(obj->resource.block_num); in _cyhal_dma_dmac_enable_event()
884 Cy_DMAC_SetInterruptMask(base, mask | (1 << obj->resource.channel_num)); in _cyhal_dma_dmac_enable_event()
886 obj->irq_cause |= event; in _cyhal_dma_dmac_enable_event()
891 Cy_DMAC_SetInterruptMask(base, mask & ~(1 << obj->resource.channel_num)); in _cyhal_dma_dmac_enable_event()
893 obj->irq_cause &= ~event; in _cyhal_dma_dmac_enable_event()
896 _cyhal_irq_set_priority(_cyhal_dma_dmac_get_irqn(obj), intr_priority); in _cyhal_dma_dmac_enable_event()
899 bool _cyhal_dma_dmac_is_busy(cyhal_dma_t *obj) in _cyhal_dma_dmac_is_busy() argument
902 …n _cyhal_dmac_get_active_channel(_cyhal_dma_dmac_get_base(obj->resource.block_num)) & (1 << obj->r… in _cyhal_dma_dmac_is_busy()
977 cy_rslt_t _cyhal_dma_dmac_connect_digital(cyhal_dma_t *obj, cyhal_source_t source, cyhal_dma_input_… in _cyhal_dma_dmac_connect_digital() argument
984 obj->descriptor_config.dmac.triggerInType = _cyhal_convert_input_t(input); in _cyhal_dma_dmac_connect_digital()
986 …_cyhal_dmac_channel_disable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.chann… in _cyhal_dma_dmac_connect_digital()
988 obj->descriptor.dmac.ctl &= ~_CYHAL_DMAC_CH_DESCR_CTL_TR_IN_TYPE_Msk; in _cyhal_dma_dmac_connect_digital()
989 …obj->descriptor.dmac.ctl |= _VAL2FLD(_CYHAL_DMAC_CH_DESCR_CTL_TR_IN_TYPE, obj->descriptor_config.d… in _cyhal_dma_dmac_connect_digital()
991 …_cyhal_dmac_channel_enable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channe… in _cyhal_dma_dmac_connect_digital()
993 … cyhal_dest_t dest = _cyhal_dma_dmac_get_dest(obj->resource.block_num, obj->resource.channel_num); in _cyhal_dma_dmac_connect_digital()
998 cy_rslt_t _cyhal_dma_dmac_enable_output(cyhal_dma_t *obj, cyhal_dma_output_t output, cyhal_source_t… in _cyhal_dma_dmac_enable_output() argument
1005 …_cyhal_dmac_channel_disable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.chann… in _cyhal_dma_dmac_enable_output()
1007 obj->descriptor.dmac.ctl &= ~_CYHAL_DMAC_CH_DESCR_CTL_TR_OUT_TYPE_Msk; in _cyhal_dma_dmac_enable_output()
1008 …obj->descriptor.dmac.ctl |= _VAL2FLD(_CYHAL_DMAC_CH_DESCR_CTL_TR_OUT_TYPE, _cyhal_convert_output_t… in _cyhal_dma_dmac_enable_output()
1010 …_cyhal_dmac_channel_enable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channe… in _cyhal_dma_dmac_enable_output()
1011 *source = _cyhal_dma_dmac_get_src(obj->resource.block_num, obj->resource.channel_num); in _cyhal_dma_dmac_enable_output()
1016 cy_rslt_t _cyhal_dma_dmac_disconnect_digital(cyhal_dma_t *obj, cyhal_source_t source, cyhal_dma_inp… in _cyhal_dma_dmac_disconnect_digital() argument
1027 …_cyhal_dmac_channel_disable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.chann… in _cyhal_dma_dmac_disconnect_digital()
1029 obj->descriptor.dmac.ctl &= ~_CYHAL_DMAC_CH_DESCR_CTL_TR_IN_TYPE_Msk; in _cyhal_dma_dmac_disconnect_digital()
1030 …obj->descriptor.dmac.ctl |= _VAL2FLD(_CYHAL_DMAC_CH_DESCR_CTL_TR_IN_TYPE, _cyhal_dma_dmac_default_… in _cyhal_dma_dmac_disconnect_digital()
1032 …_cyhal_dmac_channel_enable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channe… in _cyhal_dma_dmac_disconnect_digital()
1034 … cyhal_dest_t dest = _cyhal_dma_dmac_get_dest(obj->resource.block_num, obj->resource.channel_num); in _cyhal_dma_dmac_disconnect_digital()
1039 cy_rslt_t _cyhal_dma_dmac_disable_output(cyhal_dma_t *obj, cyhal_dma_output_t output) in _cyhal_dma_dmac_disable_output() argument
1047 …_cyhal_dmac_channel_disable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.chann… in _cyhal_dma_dmac_disable_output()
1049 obj->descriptor.dmac.ctl &= ~_CYHAL_DMAC_CH_DESCR_CTL_TR_OUT_TYPE_Msk; in _cyhal_dma_dmac_disable_output()
1050 …obj->descriptor.dmac.ctl |= _VAL2FLD(_CYHAL_DMAC_CH_DESCR_CTL_TR_OUT_TYPE, _cyhal_dma_dmac_default… in _cyhal_dma_dmac_disable_output()
1052 …_cyhal_dmac_channel_enable(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channe… in _cyhal_dma_dmac_disable_output()
1059 cy_rslt_t _cyhal_dma_dmac_connect_digital(cyhal_dma_t *obj, cyhal_source_t source, cyhal_dma_input_… in _cyhal_dma_dmac_connect_digital() argument
1065 …l_SetCurrentDescriptor(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channel_nu… in _cyhal_dma_dmac_connect_digital()
1067 … cyhal_dest_t dest = (cyhal_dest_t)(CYHAL_TRIGGER_CPUSS_DMAC0_TR_IN0 + obj->resource.channel_num); in _cyhal_dma_dmac_connect_digital()
1074 cy_rslt_t _cyhal_dma_dmac_enable_output(cyhal_dma_t *obj, cyhal_dma_output_t output, cyhal_source_t… in _cyhal_dma_dmac_enable_output() argument
1080 *source = _cyhal_dma_dmac_get_src(obj->resource.block_num, obj->resource.channel_num); in _cyhal_dma_dmac_enable_output()
1085 cy_rslt_t _cyhal_dma_dmac_disconnect_digital(cyhal_dma_t *obj, cyhal_source_t source, cyhal_dma_inp… in _cyhal_dma_dmac_disconnect_digital() argument
1092 …l_SetCurrentDescriptor(_cyhal_dma_dmac_get_base(obj->resource.block_num), obj->resource.channel_nu… in _cyhal_dma_dmac_disconnect_digital()
1094 … cyhal_dest_t dest = (cyhal_dest_t)(CYHAL_TRIGGER_CPUSS_DMAC0_TR_IN0 + obj->resource.channel_num); in _cyhal_dma_dmac_disconnect_digital()
1100 cy_rslt_t _cyhal_dma_dmac_disable_output(cyhal_dma_t *obj, cyhal_dma_output_t output) in _cyhal_dma_dmac_disable_output() argument
1102 CY_UNUSED_PARAMETER(obj); in _cyhal_dma_dmac_disable_output()