X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=ucs2-interface%2Fucs_config.h;h=b23d1694532ed537967a636aac87eae939feea2a;hb=refs%2Ftags%2Fjellyfish%2F9.99.3;hp=1f1ecdd9bc27441467a11072a9783d10dd2c5502;hpb=def4ba56e84ba75149d35475e098e1f8420532bb;p=apps%2Fagl-service-unicens.git 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;