Added UDS_HOST_NETWORKNODEID. Updated UDS_SENDFLAG_Broadcast.

This commit is contained in:
yellows8 2016-04-05 11:26:48 -04:00
parent fa70037055
commit 4123baba50

View File

@ -10,6 +10,9 @@
/// Broadcast value for NetworkNodeID / alias for all NetworkNodeIDs. /// Broadcast value for NetworkNodeID / alias for all NetworkNodeIDs.
#define UDS_BROADCAST_NETWORKNODEID 0xFFFF #define UDS_BROADCAST_NETWORKNODEID 0xFFFF
/// NetworkNodeID for the host(the first node).
#define UDS_HOST_NETWORKNODEID 0x1
/// Default value that can be used for udsSendTo() input8. /// Default value that can be used for udsSendTo() input8.
#define UDS_SEND_INPUT8_DEFAULT 0xF3 #define UDS_SEND_INPUT8_DEFAULT 0xF3
@ -107,7 +110,7 @@ enum {
enum { enum {
UDS_SENDFLAG_Default = BIT(0), //Unknown what this bit is for. UDS_SENDFLAG_Default = BIT(0), //Unknown what this bit is for.
UDS_SENDFLAG_Broadcast = BIT(1) //When set, broadcast the data frame even when UDS_BROADCAST_NETWORKNODEID isn't used. Needs verified. UDS_SENDFLAG_Broadcast = BIT(1) //When set, broadcast the data frame via the destination MAC address even when UDS_BROADCAST_NETWORKNODEID isn't used.
}; };
typedef enum { typedef enum {