Home
last modified time | relevance | path

Searched refs:length (Results 1 – 7 of 7) sorted by relevance

/hal_infineon-2.7.6/XMCLib/drivers/src/
Dxmc_fce.c114 uint32_t length, in XMC_FCE_CalculateCRC8() argument
121 if (length == 0UL) in XMC_FCE_CalculateCRC8()
127 while (0UL != length) in XMC_FCE_CalculateCRC8()
131 length -= 1U; in XMC_FCE_CalculateCRC8()
143 uint32_t length, in XMC_FCE_CalculateCRC16() argument
149 XMC_ASSERT("XMC_FCE_CalculateCRC16: Length field is empty", (length != 0)); in XMC_FCE_CalculateCRC16()
150 XMC_ASSERT("XMC_FCE_CalculateCRC16: Length is not aligned", ((length & 0x1U) == 0)); in XMC_FCE_CalculateCRC16()
153 if ((length == 0) || ((length & 0x1U) != 0U)) in XMC_FCE_CalculateCRC16()
159 while (0UL != length) in XMC_FCE_CalculateCRC16()
163 length -= 2U; in XMC_FCE_CalculateCRC16()
[all …]
Dxmc_usbd.c1284 int32_t XMC_USBD_EndpointRead(const uint8_t ep_num,uint8_t * buffer,uint32_t length) in XMC_USBD_EndpointRead() argument
1287 if (length > ep->outBytesAvailable) in XMC_USBD_EndpointRead()
1289 length = ep->outBytesAvailable; in XMC_USBD_EndpointRead()
1291 memcpy(buffer,&ep->outBuffer[ep->outOffset],length); in XMC_USBD_EndpointRead()
1292 ep->outBytesAvailable -= length; in XMC_USBD_EndpointRead()
1295 ep->outOffset += length; in XMC_USBD_EndpointRead()
1301 return (int32_t)length; in XMC_USBD_EndpointRead()
1307 int32_t XMC_USBD_EndpointWrite(const uint8_t ep_num,const uint8_t * buffer,uint32_t length) in XMC_USBD_EndpointWrite() argument
1321 if (length > ep->inBufferSize) in XMC_USBD_EndpointWrite()
1323 length = ep->inBufferSize; in XMC_USBD_EndpointWrite()
[all …]
Dxmc_eth_mac.c292 eth_mac->rx_desc[i].length = (uint32_t)ETH_MAC_DMA_RDES1_RCH | (uint32_t)XMC_ETH_MAC_BUF_SIZE; in XMC_ETH_MAC_InitRxDescriptors()
417 eth_mac->tx_desc[eth_mac->tx_index].length = len; in XMC_ETH_MAC_SendFrame()
422 eth_mac->tx_desc[eth_mac->tx_index].length += len; in XMC_ETH_MAC_SendFrame()
Dxmc_vadc.c1505 uint32_t length; in XMC_VADC_GROUP_QueueGetLength() local
1514 length = 0U; in XMC_VADC_GROUP_QueueGetLength()
1518 length = (qsr & (uint32_t)VADC_G_QSR0_FILL_Msk) + 1U; in XMC_VADC_GROUP_QueueGetLength()
1523 length++; in XMC_VADC_GROUP_QueueGetLength()
1526 return length; in XMC_VADC_GROUP_QueueGetLength()
/hal_infineon-2.7.6/XMCLib/drivers/inc/
Dxmc_fce.h577 uint32_t length,
601 uint32_t length,
620 uint32_t length,
643 uint32_t length,
662 uint32_t length,
705 void XMC_FCE_LittleEndian16bit(uint8_t* inbuffer, uint16_t* outbuffer, uint16_t length);
723 void XMC_FCE_LittleEndian32bit(uint8_t* inbuffer, uint32_t* outbuffer, uint16_t length);
Dxmc_usbd.h875 int32_t XMC_USBD_EndpointRead(const uint8_t ep_addr,uint8_t * buffer, uint32_t length);
898 int32_t XMC_USBD_EndpointWrite(const uint8_t ep_addr,const uint8_t * buffer,uint32_t length);
Dxmc_eth_mac.h355 volatile uint32_t length; /**< Descriptor length */ member
1500 eth_mac->tx_desc[eth_mac->tx_index].length = size; in XMC_ETH_MAC_SetTxBufferSize()