From 8cc415c1706f340e2997270f8a040474681e451e Mon Sep 17 00:00:00 2001 From: Tobias Jahnke Date: Tue, 15 May 2018 16:21:11 +0200 Subject: agl-service-unicens: robustess measure for tx msg - implement asynchronous message transmission via queue - set message buffer to 512 bytes payload consistently - xml parsing robustness improvement - fix error 7 caused by unnecessary gpio port initialization Bug-AGL: SPEC-1177 Change-Id: I8f494288d03d60d7a0a147f0e25ceb3665731782 Signed-off-by: Tobias Jahnke (cherry picked from commit a85efd7f8f33e04c82e44675e126089a9adbd5e3) --- ucs2-interface/ucs_config.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'ucs2-interface/ucs_config.h') diff --git a/ucs2-interface/ucs_config.h b/ucs2-interface/ucs_config.h index 1f1ecdd..b23d169 100644 --- a/ucs2-interface/ucs_config.h +++ b/ucs2-interface/ucs_config.h @@ -84,7 +84,8 @@ typedef enum UnicensCmd_NsRun, UnicensCmd_GpioCreatePort, UnicensCmd_GpioWritePort, - UnicensCmd_I2CWrite + UnicensCmd_I2CWrite, + UnicensCmd_SendAmsMessage } UnicensCmd_t; /** @@ -150,7 +151,18 @@ typedef struct } UnicensCmdI2CWrite_t; /** - * \brief Internal struct for Unicens Integration + * \brief Internal struct for UNICENS Integration + */ +typedef struct +{ + uint16_t msgId; + uint16_t targetAddress; + uint8_t pPayload[UCS_AMS_SIZE_TX_MSG]; + uint32_t payloadLen; +} UnicensCmdSendAmsMessage_t; + +/** + * \brief Internal struct for UNICENS Integration */ typedef struct { @@ -163,6 +175,7 @@ typedef struct UnicensCmdGpioCreatePort_t GpioCreatePort; UnicensCmdGpioWritePort_t GpioWritePort; UnicensCmdI2CWrite_t I2CWrite; + UnicensCmdSendAmsMessage_t SendAms; } val; } UnicensCmdEntry_t; -- cgit 1.2.3-korg