Matlab Simulink/LQ_Target_1500S_V4_0_grt_Output/LQ_ODK/src_odk_helpers/ODK_CpuReadData.cpp
bool CODK_CpuReadData::ReadS7STRING_LEN(const long  byteOffset,   // Buffer index to the data
                                        ODK_UINT8  &maxLen,       // Variable to store the maximum length of the string
                                        ODK_UINT8  &curLen) const // Variable to store the current length of the string
{
    if (ReadUINT8(byteOffset, maxLen)  &&  ReadUINT8(byteOffset + sizeof(ODK_CHAR), curLen))
    {
        return true;
    }

    return false;
}
//
// ReadS7STRING_LEN : Reads the string length information for an S7 String in the data area
//
ReadS7STRING_LEN : Reads the string length information for an S7 String in the data area
ReadS7STRING_LEN : Reads the string length information for an S7 String in the data area
bool CODK_CpuReadData::ReadS7STRING_LEN(const long  byteOffset,   
                                        ODK_UINT8  &maxLen,       
                                        ODK_UINT8  &curLen) const 
{
    if (ReadUINT8(byteOffset, maxLen)  &&  ReadUINT8(byteOffset + sizeof(ODK_CHAR), curLen))
    {
        return true;
    }
    return false;
}
bool CODK_CpuReadData :: ReadS7STRING_LEN ( const long byteOffset , ODK_UINT8 & maxLen , ODK_UINT8 & curLen ) const { if ( ReadUINT8 ( byteOffset , maxLen ) && ReadUINT8 ( byteOffset + sizeof ( ODK_CHAR ) , curLen ) ) { return true ; } return false ; }
ReadS7STRING_LEN : Reads the string length information for an S7 String in the data area
ReadS7STRING_LEN : Reads the string length information for an S7 String in the data area
// Buffer index to the data // Variable to store the maximum length of the string // Variable to store the current length of the string