diff options
author | Vo Trung Chi <Chi.VoTrung@vn.bosch.com> | 2018-12-26 15:23:09 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-10-05 11:19:26 +0900 |
commit | 0ee7fdff3d6bb2f2055e7083fa48728f4d274661 (patch) | |
tree | e191edd9e2736a6a2ebc642769a8b9c67ad60060 /include/dlt | |
parent | cc4d1e04fe4a8b57b137c347ad9fd66166b6250a (diff) | |
download | DLT-daemon-0ee7fdff3d6bb2f2055e7083fa48728f4d274661.tar.gz |
console: provides args option to enable send/receive serial header
Provides argument option to enable send and resync serial header
via command line.
Signed-off-by: Vo Trung Chi <Chi.VoTrung@vn.bosch.com>
Diffstat (limited to 'include/dlt')
-rw-r--r-- | include/dlt/dlt_client.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/dlt/dlt_client.h b/include/dlt/dlt_client.h index 77f0cee..f1802cb 100644 --- a/include/dlt/dlt_client.h +++ b/include/dlt/dlt_client.h @@ -95,9 +95,11 @@ typedef struct int port; /**< Port for TCP connections (optional) */ char *serialDevice; /**< serialDevice Devicename of serial device */ char *socketPath; /**< socketPath Unix socket path */ - char ecuid[4]; /**< ECUiD */ + char ecuid[4]; /**< ECUiD */ speed_t baudrate; /**< baudrate Baudrate of serial interface, as speed_t */ DltClientMode mode; /**< mode DltClientMode */ + int send_serial_header; /**< (Boolean) Send DLT messages with serial header */ + int resync_serial_header; /**< (Boolean) Resync to serial header on all connection */ } DltClient; # ifdef __cplusplus @@ -145,6 +147,15 @@ DltReturnValue dlt_client_cleanup(DltClient *client, int verbose); * @return Value from DltReturnValue enum */ DltReturnValue dlt_client_main_loop(DltClient *client, void *data, int verbose); + +/** + * Send a message to the daemon through the socket. + * @param client pointer to dlt client structure. + * @param msg The message to be send in DLT format. + * @return Value from DltReturnValue enum. + */ +DltReturnValue dlt_client_send_message_to_socket(DltClient *client, DltMessage *msg); + /** * Send ancontrol message to the dlt daemon * @param client pointer to dlt client structure |