You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1023 B
27 lines
1023 B
#pragma once
|
|
|
|
/* xcpEthTl.h */
|
|
|
|
/* Copyright(c) Vector Informatik GmbH.All rights reserved.
|
|
Licensed under the MIT license.See LICENSE file in the project root for details. */
|
|
|
|
/* ETH transport Layer functions called by application */
|
|
extern BOOL XcpEthTlInit(const uint8_t* addr, uint16_t port, BOOL useTCP, uint16_t segmentSize, BOOL blockingRx); // Start transport layer
|
|
|
|
// Test mode
|
|
#ifdef XCPTL_ENABLE_SELF_TEST
|
|
extern void XcpEthTlCreateA2lDescription();
|
|
extern void XcpEthTlCreateXcpEvents();
|
|
extern uint64_t XcpEthTlGetBytesWritten(); // Get the number of bytes send
|
|
#endif
|
|
|
|
|
|
/* ETH transport Layer functions called by XCPlite.c */
|
|
extern void XcpEthTlSendMulticastCrm(const uint8_t* data, uint16_t n, const uint8_t* addr, uint16_t port); // Send multicast command response
|
|
#ifdef XCPTL_ENABLE_MULTICAST
|
|
extern void XcpEthTlSetClusterId(uint16_t clusterId); // Set cluster id for GET_DAQ_CLOCK_MULTICAST reception
|
|
#endif
|
|
|
|
extern void XcpEthTlGetInfo(BOOL* isTCP, uint8_t* mac, uint8_t* addr, uint16_t* port);
|
|
|
|
|
|
|