|
237 | 237 | ChecksumOffload; /*!< Enables or Disable the checksum checking for received packet payloads TCP, UDP or ICMP headers */ |
238 | 238 |
|
239 | 239 | uint32_t InterPacketGapVal; /*!< Sets the minimum IPG between Packet during transmission. |
240 | | - * This parameter can be a value of @ref ETH_Inter_Packet_Gap */ |
| 240 | + * This parameter can be a value of @ref ETH_Inter_Packet_Gap */ |
241 | 241 |
|
242 | 242 | FunctionalState GiantPacketSizeLimitControl; /*!< Enables or disables the Giant Packet Size Limit Control. */ |
243 | 243 |
|
|
290 | 290 |
|
291 | 291 | uint32_t |
292 | 292 | GiantPacketSizeLimit; /*!< Specifies the packet size that the MAC will declare it as Giant, If it's size is |
293 | | - * greater than the value programmed in this field in units of bytes |
294 | | - * This parameter must be a number between |
295 | | - * Min_Data = 0x618 (1518 byte) and Max_Data = 0x3FFF (32 Kbyte). */ |
| 293 | + * greater than the value programmed in this field in units of bytes |
| 294 | + * This parameter must be a number between |
| 295 | + * Min_Data = 0x618 (1518 byte) and Max_Data = 0x3FFF (32 Kbyte). */ |
296 | 296 |
|
297 | 297 | FunctionalState ExtendedInterPacketGap; /*!< Enable or disables the extended inter packet gap. */ |
298 | 298 |
|
|
305 | 305 | * This parameter can be a value of @ref ETH_Watchdog_Timeout */ |
306 | 306 |
|
307 | 307 | uint32_t |
308 | | - PauseTime; /*!< This field holds the value to be used in the Pause Time field in the transmit control packet. |
309 | | - * This parameter must be a number between |
310 | | - * Min_Data = 0x0 and Max_Data = 0xFFFF.*/ |
| 308 | + PauseTime; /*!< This field holds the value to be used in the Pause Time field in the transmit control packet. |
| 309 | + * This parameter must be a number between |
| 310 | + * Min_Data = 0x0 and Max_Data = 0xFFFF.*/ |
311 | 311 |
|
312 | 312 | FunctionalState |
313 | 313 | ZeroQuantaPause; /*!< Enable or disables the automatic generation of Zero Quanta Pause Control packets.*/ |
|
444 | 444 | ETH_MediaInterfaceTypeDef MediaInterface; /*!< Selects the MII interface or the RMII interface. */ |
445 | 445 |
|
446 | 446 | ETH_DMADescTypeDef |
447 | | - * TxDesc; /*!< Provides the address of the first DMA Tx descriptor in the list */ |
| 447 | + * TxDesc; /*!< Provides the address of the first DMA Tx descriptor in the list */ |
448 | 448 |
|
449 | 449 | ETH_DMADescTypeDef |
450 | 450 | * RxDesc; /*!< Provides the address of the first DMA Rx descriptor in the list */ |
|
463 | 463 | */ |
464 | 464 | typedef struct |
465 | 465 | { |
466 | | - uint32_t Timestamp; /*!< Enable Timestamp */ |
467 | | - uint32_t TimestampUpdateMode; /*!< Fine or Coarse Timestamp Update */ |
468 | | - uint32_t TimestampInitialize; /*!< Initialize Timestamp */ |
469 | | - uint32_t TimestampUpdate; /*!< Timestamp Update */ |
470 | | - uint32_t TimestampAddendUpdate; /*!< Timestamp Addend Update */ |
471 | | - uint32_t TimestampAll; /*!< Enable Timestamp for All Packets */ |
472 | | - uint32_t TimestampRolloverMode; /*!< Timestamp Digital or Binary Rollover Control */ |
473 | | - uint32_t TimestampV2; /*!< Enable PTP Packet Processing for Version 2 Format */ |
474 | | - uint32_t TimestampEthernet; /*!< Enable Processing of PTP over Ethernet Packets */ |
475 | | - uint32_t TimestampIPv6; /*!< Enable Processing of PTP Packets Sent over IPv6-UDP */ |
476 | | - uint32_t TimestampIPv4; /*!< Enable Processing of PTP Packets Sent over IPv4-UDP */ |
477 | | - uint32_t TimestampEvent; /*!< Enable Timestamp Snapshot for Event Messages */ |
478 | | - uint32_t TimestampMaster; /*!< Enable Timestamp Snapshot for Event Messages */ |
479 | | - uint32_t TimestampFilter; /*!< Enable MAC Address for PTP Packet Filtering */ |
480 | | - uint32_t TimestampClockType; /*!< Time stamp clock node type */ |
481 | | - uint32_t TimestampAddend; /*!< Timestamp addend value */ |
482 | | - uint32_t TimestampSubsecondInc; /*!< Subsecond Increment */ |
| 466 | + uint32_t Timestamp; /*!< Enable Timestamp */ |
| 467 | + uint32_t TimestampUpdateMode; /*!< Fine or Coarse Timestamp Update */ |
| 468 | + uint32_t TimestampInitialize; /*!< Initialize Timestamp */ |
| 469 | + uint32_t TimestampUpdate; /*!< Timestamp Update */ |
| 470 | + uint32_t TimestampAddendUpdate; /*!< Timestamp Addend Update */ |
| 471 | + uint32_t TimestampAll; /*!< Enable Timestamp for All Packets */ |
| 472 | + uint32_t TimestampRolloverMode; /*!< Timestamp Digital or Binary Rollover Control */ |
| 473 | + uint32_t TimestampV2; /*!< Enable PTP Packet Processing for Version 2 Format */ |
| 474 | + uint32_t TimestampEthernet; /*!< Enable Processing of PTP over Ethernet Packets */ |
| 475 | + uint32_t TimestampIPv6; /*!< Enable Processing of PTP Packets Sent over IPv6-UDP */ |
| 476 | + uint32_t TimestampIPv4; /*!< Enable Processing of PTP Packets Sent over IPv4-UDP */ |
| 477 | + uint32_t TimestampEvent; /*!< Enable Timestamp Snapshot for Event Messages */ |
| 478 | + uint32_t TimestampMaster; /*!< Enable Timestamp Snapshot for Event Messages */ |
| 479 | + uint32_t TimestampFilter; /*!< Enable MAC Address for PTP Packet Filtering */ |
| 480 | + uint32_t TimestampClockType; /*!< Time stamp clock node type */ |
| 481 | + uint32_t TimestampAddend; /*!< Timestamp addend value */ |
| 482 | + uint32_t TimestampSubsecondInc; /*!< Subsecond Increment */ |
483 | 483 | } ETH_PTP_ConfigTypeDef; |
484 | 484 |
|
485 | 485 | /** |
|
499 | 499 | /** |
500 | 500 | * @brief HAL ETH Rx Get Buffer Function definition |
501 | 501 | */ |
502 | | - typedef void (* pETH_rxAllocateCallbackTypeDef)( uint8_t ** buffer );/*!< pointer to an ETH Rx Get Buffer Function */ |
| 502 | + typedef void (* pETH_rxAllocateCallbackTypeDef)( uint8_t ** buffer ); /*!< pointer to an ETH Rx Get Buffer Function */ |
503 | 503 |
|
504 | 504 | /** |
505 | 505 | * |
|
520 | 520 | /** |
521 | 521 | * @brief HAL ETH Tx Free Function definition |
522 | 522 | */ |
523 | | - typedef void (* pETH_txFreeCallbackTypeDef)( uint32_t * buffer );/*!< pointer to an ETH Tx Free function */ |
| 523 | + typedef void (* pETH_txFreeCallbackTypeDef)( uint32_t * buffer ); /*!< pointer to an ETH Tx Free function */ |
524 | 524 |
|
525 | 525 | /** |
526 | 526 | * |
|
545 | 545 | typedef struct |
546 | 546 | #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ |
547 | 547 | { |
548 | | - ETH_TypeDef * Instance; /*!< Register base address */ |
| 548 | + ETH_TypeDef * Instance; /*!< Register base address */ |
549 | 549 |
|
550 | | - ETH_InitTypeDef Init; /*!< Ethernet Init Configuration */ |
| 550 | + ETH_InitTypeDef Init; /*!< Ethernet Init Configuration */ |
551 | 551 |
|
552 | | - ETH_TxDescListTypeDef TxDescList; /*!< Tx descriptor wrapper: holds all Tx descriptors list |
553 | | - * addresses and current descriptor index */ |
| 552 | + ETH_TxDescListTypeDef TxDescList; /*!< Tx descriptor wrapper: holds all Tx descriptors list |
| 553 | + * addresses and current descriptor index */ |
554 | 554 |
|
555 | | - ETH_RxDescListTypeDef RxDescList; /*!< Rx descriptor wrapper: holds all Rx descriptors list |
556 | | - * addresses and current descriptor index */ |
| 555 | + ETH_RxDescListTypeDef RxDescList; /*!< Rx descriptor wrapper: holds all Rx descriptors list |
| 556 | + * addresses and current descriptor index */ |
557 | 557 |
|
558 | 558 | #ifdef HAL_ETH_USE_PTP |
559 | | - ETH_TimeStampTypeDef TxTimestamp; /*!< Tx Timestamp */ |
| 559 | + ETH_TimeStampTypeDef TxTimestamp; /*!< Tx Timestamp */ |
560 | 560 | #endif /* HAL_ETH_USE_PTP */ |
561 | 561 |
|
562 | | - __IO HAL_ETH_StateTypeDef gState; /*!< ETH state information related to global Handle management |
563 | | - * and also related to Tx operations. This parameter can |
564 | | - * be a value of @ref ETH_State_Codes */ |
| 562 | + __IO HAL_ETH_StateTypeDef gState; /*!< ETH state information related to global Handle management |
| 563 | + * and also related to Tx operations. This parameter can |
| 564 | + * be a value of @ref ETH_State_Codes */ |
565 | 565 |
|
566 | | - __IO uint32_t ErrorCode; /*!< Holds the global Error code of the ETH HAL status machine |
567 | | - * This parameter can be a value of @ref ETH_Error_Code.*/ |
| 566 | + __IO uint32_t ErrorCode; /*!< Holds the global Error code of the ETH HAL status machine |
| 567 | + * This parameter can be a value of @ref ETH_Error_Code.*/ |
568 | 568 |
|
569 | 569 | __IO uint32_t |
570 | 570 | DMAErrorCode; /*!< Holds the DMA Rx Tx Error code when a DMA AIS interrupt occurs |
|
627 | 627 | /** |
628 | 628 | * @brief HAL ETH Callback pointer definition |
629 | 629 | */ |
630 | | - typedef void (* pETH_CallbackTypeDef)( ETH_HandleTypeDef * heth );/*!< pointer to an ETH callback function */ |
| 630 | + typedef void (* pETH_CallbackTypeDef)( ETH_HandleTypeDef * heth ); /*!< pointer to an ETH callback function */ |
631 | 631 |
|
632 | 632 | #endif /* USE_HAL_ETH_REGISTER_CALLBACKS */ |
633 | 633 |
|
|
855 | 855 | #define ETH_DMAPTPRXDESC_PTPMT_DELAYREQ 0x00000300U /* DelayReq message |
856 | 856 | * (all clock types) */ |
857 | 857 | #define ETH_DMAPTPRXDESC_PTPMT_DELAYRESP 0x00000400U /* DelayResp message |
858 | | - * (all clock types) */ |
| 858 | + * (all clock types) */ |
859 | 859 | #define ETH_DMAPTPRXDESC_PTPMT_PDELAYREQ_ANNOUNCE 0x00000500U /* PdelayReq message |
860 | 860 | * (peer-to-peer transparent clock) |
861 | 861 | * or Announce message (Ordinary |
|
875 | 875 | #define ETH_DMAPTPRXDESC_IPHE 0x00000008U /* IP Header Error */ |
876 | 876 | #define ETH_DMAPTPRXDESC_IPPT 0x00000007U /* IP Payload Type */ |
877 | 877 | #define ETH_DMAPTPRXDESC_IPPT_UDP 0x00000001U /* UDP payload encapsulated in |
878 | | - * the IP datagram */ |
| 878 | + * the IP datagram */ |
879 | 879 | #define ETH_DMAPTPRXDESC_IPPT_TCP 0x00000002U /* TCP payload encapsulated in |
880 | | - * the IP datagram */ |
| 880 | + * the IP datagram */ |
881 | 881 | #define ETH_DMAPTPRXDESC_IPPT_ICMP 0x00000003U /* ICMP payload encapsulated in |
882 | 882 | * the IP datagram */ |
883 | 883 |
|
|
0 commit comments