nn::uds::CTR::Attach Functionnn::Result Attach( EndpointDescriptor * pEndpointDesc, u16 srcNodeId, u8 port, size_t receiveBufferSize = (UDS_PACKET_PAYLOAD_MAX_SIZE *8) );
| Name | Description | |
|---|---|---|
| in | pEndpointDesc | Descriptor indicating the endpoint to use. |
| in | srcNodeId | Node ID to attach. When BROADCAST_NODE_ID is specified, all nodes will be attached. |
| in | port | Port number to attach. Port number 0x00 is reserved by the system and cannot be used. |
| in | receiveBufferSize | Size of the receive buffer to allocate. This is allocated from the memory block allocated by the Initialize function, so take care that the total size of all receive buffers does not exceed the size of this allocated memory block. By default, a size of 8 times the UDS_PACKET_PAYLOAD_MAX_SIZE data is allocated. When specifying the data size, choosing a multiple of 32 will yield the maximum efficiency. (Memory is allocated in 32-byte chunks.) |
Attaches the specified port and node ID to the descriptor. When doing so, the system creates a receive buffer for receiving data.
CONFIDENTIAL