|
|
|
@ -44,9 +44,7 @@ |
|
|
|
* 模块级变量 * |
|
|
|
*----------------------------------------------*/ |
|
|
|
static uint32_t g_uiIVModuleID = 0; |
|
|
|
static PV_struct_define decoded_PV_variable = { 0 }; |
|
|
|
static PV_struct_define decoded_PV = { 0 }; |
|
|
|
static IV_struct_define IV = { 0 }; |
|
|
|
static char g_IV_buffer[1024] = {0}; |
|
|
|
/*----------------------------------------------*
|
|
|
|
* 常量定义 * |
|
|
|
@ -74,6 +72,7 @@ int check_PV(char *_pBuffer, uint32_t _iSize) |
|
|
|
|
|
|
|
void decode_PV(const char *_pBuffer, uint32_t _iSize) |
|
|
|
{ |
|
|
|
PV_struct_define decoded_PV_variable = { 0 }; |
|
|
|
if (_pBuffer[2] == 0x01 && _pBuffer[3] == 0x01) //01 01 设置PV
|
|
|
|
{ |
|
|
|
pb_istream_t i_pv_stream; |
|
|
|
@ -114,6 +113,7 @@ static void SendIV_ModuleHandler(const Msg_t *pstMsg) |
|
|
|
{ |
|
|
|
case SENDIV_SET_IV: |
|
|
|
{ |
|
|
|
IV_struct_define IV = { 0 }; |
|
|
|
if (pstMsg->m_uiDataLen >= sizeof(IV)) |
|
|
|
{ |
|
|
|
RD_MEMCPY(&IV, pstMsg->m_aucData, sizeof(IV)); |
|
|
|
|