nn::uds::CTR::SendTo Function

Syntax

nn::Result SendTo(
     const EndpointDescriptor & endpointDesc,
     const void* data,
     size_t dataSize,
     u16 destNodeId,
     u8 port,
     bit8 option = 0x00
);

Arguments

Name Description
in endpointDesc Descriptor indicating the endpoint to use.
in data Pointer to the data to send.
in dataSize Size of the data to send. The maximum size of the data to send is UDS_PACKET_PAYLOAD_MAX_SIZE bytes.
in destNodeId Sending destination. Specify BROADCAST_NODE_ID to broadcast the data.
in port The port to use. Port number 0x00 is reserved by the system and cannot be used.
in option Sending options. Specifying NO_WAIT here will cause the function to send data immediately without storing in the UDS internal sending buffer.

Return Values

Returns the function's execution result.

Description

Sends data to the specified port on the specified partner's system. This function blocks until it has finished sending data.

Revision History

2010/06/14
Initial version.

CONFIDENTIAL