/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/source/ |
D | cy_scb_ezi2c.c | 40 static void HandleErrors (CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 41 static void HandleAddress (CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 43 static void HandleDataReceive (CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 44 static void HandleDataTransmit(CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 45 static void HandleStop (CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 46 static void UpdateAddressMask (CySCB_Type *base, cy_stc_scb_ezi2c_context_t const *context); 75 cy_stc_scb_ezi2c_context_t *context) in Cy_SCB_EZI2C_Init() argument 78 if ((NULL == base) || (NULL == config) || (NULL == context)) in Cy_SCB_EZI2C_Init() 104 context->address2 = 0U; in Cy_SCB_EZI2C_Init() 105 Cy_SCB_EZI2C_SetAddress1(base, config->slaveAddress1, context); in Cy_SCB_EZI2C_Init() [all …]
|
D | cy_scb_i2c.c | 39 static void SlaveHandleAddress (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 40 static void SlaveHandleDataReceive (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 41 static void SlaveHandleDataTransmit(CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 42 static void SlaveHandleStop (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 44 static void MasterHandleEvents (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 45 static void MasterHandleDataTransmit(CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 46 static void MasterHandleDataReceive (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 47 static void MasterHandleStop (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 48 static void MasterHandleComplete (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 51 cy_stc_scb_i2c_context_t *context); [all …]
|
D | cy_keyscan.c | 45 …s_status_t Cy_Keyscan_GetEventsFromHWFifo(MXKEYSCAN_Type *base, cy_stc_keyscan_context_t *context); 46 static cy_en_ks_status_t Cy_Keyscan_Fq_Flush(cy_stc_keyscan_context_t* context); 47 static cy_en_ks_status_t Cy_Keyscan_Fq_GetCurNumElements(cy_stc_keyscan_context_t* context, uint8_t… 48 static cy_en_ks_status_t Cy_Keyscan_Fq_PutIncludeOverflowSlot(cy_stc_keyscan_context_t* context, cy… 49 static cy_en_ks_status_t Cy_Keyscan_Fq_GetCurElmPtr(cy_stc_keyscan_context_t* context, cy_stc_key_e… 50 static cy_en_ks_status_t Cy_Keyscan_Fq_RemoveCurElement(cy_stc_keyscan_context_t* context); 51 static cy_en_ks_status_t Cy_Keyscan_Fq_Put(cy_stc_keyscan_context_t* context, cy_stc_key_event *ele… 52 …ic cy_en_ks_status_t Cy_Keyscan_Fq_MarkCurrentEventForRollBack (cy_stc_keyscan_context_t* context); 53 static cy_en_ks_status_t Cy_Keyscan_Fq_RollbackUptoMarkedEvents(cy_stc_keyscan_context_t* context); 54 static cy_en_ks_status_t Cy_Keyscan_PutEvent(cy_stc_keyscan_context_t* context, cy_stc_key_event *e… [all …]
|
D | cy_usbfs_dev_drv.c | 53 static void LpmIntrHandler(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 54 static void SofIntrHandler(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 55 static void Ep0IntrHandler(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 56 static void BusResetIntrHandler(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 57 static void ArbiterIntrHandler (USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 58 …ieEnpointIntrHandler(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context_t *context); 63 static void RestoreDeviceConfiguration(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context); 67 cy_stc_usbfs_dev_drv_context_t *context); 93 cy_stc_usbfs_dev_drv_context_t *context) in Cy_USBFS_Dev_Drv_Init() argument 98 if ((NULL == base) || (NULL == config) || (NULL == context)) in Cy_USBFS_Dev_Drv_Init() [all …]
|
D | cy_scb_uart.c | 36 static void HandleDataReceive (CySCB_Type *base, cy_stc_scb_uart_context_t *context); 37 static void HandleRingBuffer (CySCB_Type *base, cy_stc_scb_uart_context_t *context); 38 static void HandleDataTransmit(CySCB_Type *base, cy_stc_scb_uart_context_t *context); 69 …y_SCB_UART_SetOverSample(CySCB_Type *base, uint32_t overSample, cy_stc_scb_uart_context_t *context) in Cy_SCB_UART_SetOverSample() argument 73 if((NULL == base) || (NULL == context) || in Cy_SCB_UART_SetOverSample() 74 …cy_en_scb_uart_mode_t)_FLD2VAL(SCB_UART_CTRL_MODE,SCB_UART_CTRL(base))), context->irdaEnableLowPow… in Cy_SCB_UART_SetOverSample() 82 …_SCB_UART_IRDA == _FLD2VAL(SCB_UART_CTRL_MODE,SCB_UART_CTRL(base))) && (!context->irdaEnableLowPow… in Cy_SCB_UART_SetOverSample() 266 …_Init(CySCB_Type *base, cy_stc_scb_uart_config_t const *config, cy_stc_scb_uart_context_t *context) in Cy_SCB_UART_Init() argument 368 if (NULL != context) in Cy_SCB_UART_Init() 370 context->rxStatus = 0UL; in Cy_SCB_UART_Init() [all …]
|
D | cy_scb_spi.c | 36 static void HandleTransmit(CySCB_Type *base, cy_stc_scb_spi_context_t *context); 37 static void HandleReceive (CySCB_Type *base, cy_stc_scb_spi_context_t *context); 68 …PI_Init(CySCB_Type *base, cy_stc_scb_spi_config_t const *config, cy_stc_scb_spi_context_t *context) in Cy_SCB_SPI_Init() argument 183 if (NULL != context) in Cy_SCB_SPI_Init() 185 context->status = 0UL; in Cy_SCB_SPI_Init() 187 context->txBufIdx = 0UL; in Cy_SCB_SPI_Init() 188 context->rxBufIdx = 0UL; in Cy_SCB_SPI_Init() 190 context->cbEvents = NULL; in Cy_SCB_SPI_Init() 196 context->initKey = CY_SCB_SPI_INIT_KEY; in Cy_SCB_SPI_Init() 277 void Cy_SCB_SPI_Disable(CySCB_Type *base, cy_stc_scb_spi_context_t *context) in Cy_SCB_SPI_Disable() argument [all …]
|
D | cy_usbfs_dev_drv_io.c | 76 …void DisableEndpoint(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context_t *context); 98 … void DisableEndpoint(USBFS_Type *base, uint32_t endpoint, cy_stc_usbfs_dev_drv_context_t *context) in DisableEndpoint() argument 102 context->epPool[endpoint].state = CY_USB_DEV_EP_DISABLED; in DisableEndpoint() 124 void Cy_USBFS_Dev_Drv_ConfigDevice(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context) in Cy_USBFS_Dev_Drv_ConfigDevice() argument 126 if (CY_USBFS_DEV_DRV_EP_MANAGEMENT_CPU != context->mode) in Cy_USBFS_Dev_Drv_ConfigDevice() 130 if (CY_USBFS_DEV_DRV_EP_MANAGEMENT_DMA_AUTO == context->mode) in Cy_USBFS_Dev_Drv_ConfigDevice() 142 USBFS_DEV_ARB_CFG(base) = _VAL2FLD(USBFS_USBDEV_ARB_CFG_DMA_CFG, context->mode) | in Cy_USBFS_Dev_Drv_ConfigDevice() 171 void Cy_USBFS_Dev_Drv_UnConfigureDevice(USBFS_Type *base, cy_stc_usbfs_dev_drv_context_t *context) in Cy_USBFS_Dev_Drv_UnConfigureDevice() argument 176 context->curBufAddr = 0U; in Cy_USBFS_Dev_Drv_UnConfigureDevice() 179 context->activeEpMask = 0U; in Cy_USBFS_Dev_Drv_UnConfigureDevice() [all …]
|
D | cy_smif_hb_flash.c | 62 cy_stc_smif_context_t *context); 73 cy_stc_smif_context_t *context); 109 …InitDevice(SMIF_Type *base, const cy_stc_smif_mem_config_t *memCfg, cy_stc_smif_context_t *context) in Cy_SMIF_HyperBus_InitDevice() argument 115 …if ((_FLD2VAL(SMIF_CTL_XIP_MODE, SMIF_CTL(base)) != 1U) && (0U != (context->flags & CY_SMIF_FLAG_M… in Cy_SMIF_HyperBus_InitDevice() 171 context->dummyCycles = config->dummyCycles; in Cy_SMIF_HyperBus_InitDevice() 173 context->preXIPDataRate = CY_SMIF_DDR; in Cy_SMIF_HyperBus_InitDevice() 266 …Config, uint8_t dummyCycles, uint32_t calibrationDataOffsetAddress, cy_stc_smif_context_t *context) in Cy_SMIF_HyperBus_CalibrateDelay() argument 282 SMIF_Status = Cy_SMIF_HyperBus_EraseSector(base,memConfig,calibrationDataOffsetAddress,context); in Cy_SMIF_HyperBus_CalibrateDelay() 296 context in Cy_SMIF_HyperBus_CalibrateDelay() 330 context in Cy_SMIF_HyperBus_CalibrateDelay() [all …]
|
D | cy_smif_memslot.c | 53 cy_stc_smif_context_t const *context); 106 cy_stc_smif_context_t *context) in Cy_SMIF_MemInit() argument 115 && (NULL != context) && (0U != blockConfig->memCount)) in Cy_SMIF_MemInit() 131 context->flags = memCfg->flags; in Cy_SMIF_MemInit() 161 context); in Cy_SMIF_MemInit() 182 context->preXIPDataRate = memCfg->deviceCfg->readCmd->dataRate; in Cy_SMIF_MemInit() 205 result = (uint32_t)Cy_SMIF_HyperBus_InitDevice(base, memCfg, context); in Cy_SMIF_MemInit() 296 cy_stc_smif_context_t const *context) in Cy_SMIF_MemCmdWriteEnable() argument 317 context); in Cy_SMIF_MemCmdWriteEnable() 326 context); in Cy_SMIF_MemCmdWriteEnable() [all …]
|
D | cy_sd_host.c | 353 cy_stc_sd_host_context_t *context); 358 cy_stc_sd_host_context_t const *context); 370 cy_stc_sd_host_context_t *context); 372 cy_stc_sd_host_context_t const *context); 380 cy_stc_sd_host_context_t const *context); 386 cy_stc_sd_host_context_t const *context); 393 cy_stc_sd_host_context_t const *context); 417 cy_stc_sd_host_context_t *context); 449 cy_stc_sd_host_context_t *context) in Cy_SD_Host_eMMC_InitCard() argument 473 context->cardCapacity = CY_SD_HOST_EMMC_LESS_2G; in Cy_SD_Host_eMMC_InitCard() [all …]
|
D | cy_canfd.c | 222 cy_stc_canfd_context_t const *context); 263 cy_stc_canfd_context_t *context) in Cy_CANFD_Init() argument 272 (NULL != context) && in Cy_CANFD_Init() 310 context->canFDInterruptHandling.canFDTxInterruptFunction = config->txCallback; in Cy_CANFD_Init() 311 context->canFDInterruptHandling.canFDRxInterruptFunction = config->rxCallback; in Cy_CANFD_Init() 312 context->canFDInterruptHandling.canFDErrorInterruptFunction = config->errorCallback; in Cy_CANFD_Init() 320 context->messageRAMaddress = config->messageRAMaddress; in Cy_CANFD_Init() 321 context->messageRAMsize = config->messageRAMsize; in Cy_CANFD_Init() 504 Cy_CANFD_SidFiltersSetup(base, chan, config->sidFilterConfig, context); in Cy_CANFD_Init() 510 Cy_CANFD_XidFiltersSetup(base, chan, config->extidFilterConfig, context); in Cy_CANFD_Init() [all …]
|
D | cy_smif.c | 75 cy_stc_smif_context_t *context) in Cy_SMIF_Init() argument 79 if((NULL != base) && (NULL != config) && (NULL != context)) in Cy_SMIF_Init() 86 context->timeout = timeout; in Cy_SMIF_Init() 89 context->memReadyPollDealy = 0U; in Cy_SMIF_Init() 93 context->preXIPDataRate = CY_SMIF_SDR; in Cy_SMIF_Init() 361 cy_stc_smif_context_t const *context) in Cy_SMIF_TransmitCommand() argument 375 context); in Cy_SMIF_TransmitCommand() 392 uint32_t timeoutUnits = context->timeout; in Cy_SMIF_TransmitCommand() 484 cy_stc_smif_context_t *context) in Cy_SMIF_TransmitData() argument 494 context); in Cy_SMIF_TransmitData() [all …]
|
D | cy_csd.c | 76 …pe * base, cy_stc_csd_config_t const * config, cy_en_csd_key_t key, cy_stc_csd_context_t * context) in Cy_CSD_Init() argument 80 if ((NULL == base) || (CY_CSD_NONE_KEY == key) || (NULL == config) || (NULL == context)) in Cy_CSD_Init() 86 if(CY_CSD_NONE_KEY == context->lockKey) in Cy_CSD_Init() 88 context->lockKey = key; in Cy_CSD_Init() 89 csdStatus = Cy_CSD_Configure(base, config, key, context); in Cy_CSD_Init() 122 …status_t Cy_CSD_DeInit(const CSD_Type * base, cy_en_csd_key_t key, cy_stc_csd_context_t * context) in Cy_CSD_DeInit() argument 126 if(key == context->lockKey) in Cy_CSD_DeInit() 128 if(CY_CSD_SUCCESS == Cy_CSD_GetConversionStatus(base, context)) in Cy_CSD_DeInit() 130 context->lockKey = CY_CSD_NONE_KEY; in Cy_CSD_DeInit() 174 …n_csd_status_t Cy_CSD_Capture(CSD_Type * base, cy_en_csd_key_t key, cy_stc_csd_context_t * context) in Cy_CSD_Capture() argument [all …]
|
D | cy_usbfs_dev_drv_io_dma.c | 161 …tus_t DmaInit(cy_stc_usbfs_dev_drv_config_t const *config, cy_stc_usbfs_dev_drv_context_t *context) in DmaInit() argument 174 cy_stc_usbfs_dev_drv_endpoint_data_t *endpointData = &context->epPool[endpoint]; in DmaInit() 194 if (CY_USBFS_DEV_DRV_EP_MANAGEMENT_DMA == context->mode) in DmaInit() 254 DmaDisable(context); in DmaInit() 275 void DmaDisable(cy_stc_usbfs_dev_drv_context_t *context) in DmaDisable() argument 283 cy_stc_usbfs_dev_drv_endpoint_data_t *endpointData = &context->epPool[endpoint]; in DmaDisable() 669 cy_stc_usbfs_dev_drv_context_t *context) in AddEndpointRamBuffer() argument 676 cy_stc_usbfs_dev_drv_endpoint_data_t *endpointData = &context->epPool[endpoint]; in AddEndpointRamBuffer() 684 context->activeEpMask |= (uint8_t) EP2MASK(endpoint); in AddEndpointRamBuffer() 685 USBFS_DEV_EP_ACTIVE(base) = context->activeEpMask; in AddEndpointRamBuffer() [all …]
|
D | cy_adcmic.c | 208 Cy_ADCMic_SetDcOffset(CY_ADCMIC_DC_OFFSET, locDcCgf->context); in Cy_ADCMic_Init() 209 Cy_ADCMic_SetDcGain(CY_ADCMIC_DC_GAIN(base), locDcCgf->context); in Cy_ADCMic_Init() 394 void Cy_ADCMic_SetDcOffset(int16_t offset, cy_stc_adcmic_context_t * context) in Cy_ADCMic_SetDcOffset() argument 396 if (NULL != context) in Cy_ADCMic_SetDcOffset() 398 context->offset = offset; in Cy_ADCMic_SetDcOffset() 402 void Cy_ADCMic_SetDcGain(int16_t gain, cy_stc_adcmic_context_t * context) in Cy_ADCMic_SetDcGain() argument 404 if (NULL != context) in Cy_ADCMic_SetDcGain() 406 context->gain = gain; in Cy_ADCMic_SetDcGain() 410 int32_t Cy_ADCMic_CountsTo_uVolts(int16_t adcCounts, cy_stc_adcmic_context_t const * context) in Cy_ADCMic_CountsTo_uVolts() argument 412 …return ((int32_t)(((int64_t)adcCounts - (int64_t)context->offset) * CY_ADCMIC_UV / (int64_t)contex… in Cy_ADCMic_CountsTo_uVolts() [all …]
|
/hal_infineon-3.6.0/mtb-pdl-cat1/drivers/include/ |
D | cy_usbfs_dev_drv.h | 907 struct cy_stc_usbfs_dev_drv_context *context); 917 struct cy_stc_usbfs_dev_drv_context *context); 935 struct cy_stc_usbfs_dev_drv_context *context); 946 struct cy_stc_usbfs_dev_drv_context *context); 958 struct cy_stc_usbfs_dev_drv_context *context); 1146 cy_stc_usbfs_dev_drv_context_t *context); 1149 cy_stc_usbfs_dev_drv_context_t *context); 1152 cy_stc_usbfs_dev_drv_context_t const *context); 1155 cy_stc_usbfs_dev_drv_context_t *context); 1158 cy_stc_usbfs_dev_drv_context_t *context); [all …]
|
D | cy_scb_i2c.h | 653 cy_stc_scb_i2c_context_t *context); 656 void Cy_SCB_I2C_Disable(CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 685 cy_stc_scb_i2c_context_t *context); 686 void Cy_SCB_I2C_SlaveAbortRead (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 688 cy_stc_scb_i2c_context_t *context); 689 void Cy_SCB_I2C_SlaveAbortWrite (CySCB_Type *base, cy_stc_scb_i2c_context_t *context); 691 … Cy_SCB_I2C_SlaveGetStatus (CySCB_Type const *base, cy_stc_scb_i2c_context_t const *context); 692 uint32_t Cy_SCB_I2C_SlaveClearReadStatus (CySCB_Type const *base, cy_stc_scb_i2c_context_t *context… 693 uint32_t Cy_SCB_I2C_SlaveClearWriteStatus(CySCB_Type const *base, cy_stc_scb_i2c_context_t *context… 695 …CB_I2C_SlaveGetReadTransferCount (CySCB_Type const *base, cy_stc_scb_i2c_context_t const *context); [all …]
|
D | cy_smif.h | 1235 cy_stc_smif_context_t *context); 1247 cy_stc_smif_context_t const *context); 1252 cy_stc_smif_context_t *context); 1257 cy_stc_smif_context_t const *context); 1262 cy_stc_smif_context_t *context); 1267 cy_stc_smif_context_t const *context); 1269 uint32_t Cy_SMIF_GetTransferStatus(SMIF_Type const *base, cy_stc_smif_context_t const *context); 1270 void Cy_SMIF_Enable(SMIF_Type *base, cy_stc_smif_context_t *context); 1284 cy_stc_smif_context_t const *context); 1292 cy_stc_smif_context_t *context); [all …]
|
D | cy_usbfs_dev_drv_pvt.h | 47 cy_stc_usbfs_dev_drv_context_t *context); 49 void DmaDisable(cy_stc_usbfs_dev_drv_context_t *context); 60 cy_stc_usbfs_dev_drv_context_t *context); 73 cy_stc_usbfs_dev_drv_context_t *context); 77 cy_stc_usbfs_dev_drv_context_t *context); 84 cy_stc_usbfs_dev_drv_context_t *context); 90 cy_stc_usbfs_dev_drv_context_t *context); 96 cy_stc_usbfs_dev_drv_context_t *context); 103 cy_stc_usbfs_dev_drv_context_t *context); 110 cy_stc_usbfs_dev_drv_context_t *context); [all …]
|
D | cy_smif_memslot.h | 885 cy_stc_smif_context_t *context); 889 cy_stc_smif_context_t const *context); 892 cy_stc_smif_context_t const *context); 894 cy_stc_smif_context_t const *context); 897 cy_stc_smif_context_t const *context); 902 cy_stc_smif_context_t const *context); 908 cy_stc_smif_context_t const *context); 912 cy_stc_smif_context_t const *context); 915 cy_stc_smif_context_t const *context); 919 cy_stc_smif_context_t const *context); [all …]
|
D | cy_scb_ezi2c.h | 385 cy_stc_scb_ezi2c_context_t *context); 388 void Cy_SCB_EZI2C_Disable(CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context); 390 … Cy_SCB_EZI2C_SetAddress1(CySCB_Type *base, uint8_t addr, cy_stc_scb_ezi2c_context_t *context); 391 uint32_t Cy_SCB_EZI2C_GetAddress1(CySCB_Type const *base, cy_stc_scb_ezi2c_context_t const *context… 393 … Cy_SCB_EZI2C_SetAddress2(CySCB_Type *base, uint8_t addr, cy_stc_scb_ezi2c_context_t *context); 394 uint32_t Cy_SCB_EZI2C_GetAddress2(CySCB_Type const *base, cy_stc_scb_ezi2c_context_t const *context… 402 cy_stc_scb_ezi2c_context_t *context); 404 cy_stc_scb_ezi2c_context_t *context); 406 uint32_t Cy_SCB_EZI2C_GetActivity(CySCB_Type const *base, cy_stc_scb_ezi2c_context_t *context); 408 void Cy_SCB_EZI2C_Interrupt(CySCB_Type *base, cy_stc_scb_ezi2c_context_t *context);
|
D | cy_scb_uart.h | 592 cy_stc_scb_uart_context_t *context); 595 void Cy_SCB_UART_Disable(CySCB_Type *base, cy_stc_scb_uart_context_t *context); 611 cy_stc_scb_uart_context_t *context); 612 void Cy_SCB_UART_StopRingBuffer (CySCB_Type *base, cy_stc_scb_uart_context_t *context); 613 …t Cy_SCB_UART_GetNumInRingBuffer(CySCB_Type const *base, cy_stc_scb_uart_context_t const *context); 614 void Cy_SCB_UART_ClearRingBuffer (CySCB_Type const *base, cy_stc_scb_uart_context_t *context); 617 cy_stc_scb_uart_context_t *context); 618 void Cy_SCB_UART_AbortReceive (CySCB_Type *base, cy_stc_scb_uart_context_t *context); 619 …2_t Cy_SCB_UART_GetReceiveStatus(CySCB_Type const *base, cy_stc_scb_uart_context_t const *context); 620 …2_t Cy_SCB_UART_GetNumReceived (CySCB_Type const *base, cy_stc_scb_uart_context_t const *context); [all …]
|
/hal_infineon-3.6.0/bless/ |
D | cy_ble_event_handler.c | 93 …for(idx = 0u; (idx < cy_ble_configPtr->context->eventHandlerPool->count) && (existFlag == false); … in Cy_BLE_RegisterServiceEventHandler() 95 … if(cy_ble_configPtr->context->eventHandlerPool->serviceEventHandler[idx] == eventHandlerFunc) in Cy_BLE_RegisterServiceEventHandler() 105 if(cy_ble_configPtr->context->eventHandlerPool->count < in Cy_BLE_RegisterServiceEventHandler() 106 cy_ble_configPtr->context->eventHandlerPool->maxServCount) in Cy_BLE_RegisterServiceEventHandler() 108 cy_ble_configPtr->context->eventHandlerPool-> in Cy_BLE_RegisterServiceEventHandler() 109 … serviceEventHandler[cy_ble_configPtr->context->eventHandlerPool->count] = eventHandlerFunc; in Cy_BLE_RegisterServiceEventHandler() 110 cy_ble_configPtr->context->eventHandlerPool->count += 1u; in Cy_BLE_RegisterServiceEventHandler() 141 for(idx = 0u; ( (idx < cy_ble_configPtr->context->eventHandlerPool->count) && in Cy_BLE_InvokeServiceEventHandler() 144 gattErr = cy_ble_configPtr->context->eventHandlerPool-> in Cy_BLE_InvokeServiceEventHandler() 205 (cy_ble_configPtr->context->discovery[discIdx].autoDiscoveryFlag != 0u)) in Cy_BLE_TimeOutEventHandler() [all …]
|
/hal_infineon-3.6.0/mtb-hal-cat1/source/ |
D | cyhal_i2c.c | 139 Cy_SCB_I2C_Interrupt(obj->base, &(obj->context)); in _cyhal_i2c_irq_handler() 145 if (0 == (Cy_SCB_I2C_MasterGetStatus(obj->base, &obj->context) & CY_SCB_I2C_MASTER_BUSY)) in _cyhal_i2c_irq_handler() 152 Cy_SCB_I2C_MasterRead(obj->base, &obj->rx_config, &obj->context); in _cyhal_i2c_irq_handler() 231 .context = (void *) &(obj->context) in _cyhal_i2c_pm_callback_instance() 353 cy_rslt_t result = (cy_rslt_t)Cy_SCB_I2C_Init(obj->base, pdl_cfg, &(obj->context)); in _cyhal_i2c_init_hw() 363 Cy_SCB_I2C_Enable(obj->base, &(obj->context)); in _cyhal_i2c_init_hw() 386 return Cy_SCB_I2C_SlaveGetStatus(obj->base, &obj->context); in _cyhal_i2c_slave_status() 391 (void)Cy_SCB_I2C_SlaveClearWriteStatus(obj->base, &obj->context); in _cyhal_i2c_slave_clear_write_status() 396 (void)Cy_SCB_I2C_SlaveClearReadStatus(obj->base, &obj->context); in _cyhal_i2c_slave_clear_read_status() 472 Cy_SCB_I2C_Disable(obj->base, &obj->context); in cyhal_i2c_free() [all …]
|
D | cyhal_usb_dev.c | 481 … if (CY_USBFS_DEV_DRV_SUCCESS != Cy_USBFS_Dev_Drv_Init(obj->base, &default_cfg, &(obj->context))) in cyhal_usb_dev_init() 494 &(obj->context)); in cyhal_usb_dev_init() 497 &(obj->context)); in cyhal_usb_dev_init() 500 &(obj->context)); in cyhal_usb_dev_init() 503 &(obj->context)); in cyhal_usb_dev_init() 507 &(obj->context)); in cyhal_usb_dev_init() 523 &(obj->context)); in cyhal_usb_dev_init() 545 Cy_USBFS_Dev_Drv_Enable(obj->base, &(obj->context)); in cyhal_usb_dev_connect() 550 Cy_USBFS_Dev_Drv_Disable(obj->base, &(obj->context)); in cyhal_usb_dev_disconnect() 555 Cy_USBFS_Dev_Drv_Suspend(obj->base, &(obj->context)); in cyhal_usb_dev_suspend() [all …]
|