Matlab Simulink/LQ_Target_1500S_V4_0_grt_Output/LQ_ODK/src_odk_helpers/ODK_CpuReadData.cpp
bool CODK_CpuReadData::ReadUINT8(const long  byteOffset,   // Buffer index to the data
                                 ODK_UINT8  &value) const  // Variable to store the read value
{
    // Verify offset is within data area
    if ((byteOffset < 0) || ((byteOffset + ODK_SIZEBIT8) > m_nBytes))
    {
        return false;
    }

    // Read, convert, and return the data
    value = reinterpret_cast<ODK_UINT8&>(m_data[byteOffset]);

    return true;
}
//
// ReadUINT8 : Reads a generic 8-bit value from the data area (used by public read methods)
//
ReadUINT8 : Reads a generic 8-bit value from the data area (used by public read methods)
ReadUINT8 : Reads a generic 8 - bit value from the data area ( used by public read methods )
bool CODK_CpuReadData::ReadUINT8(const long  byteOffset,   
                                 ODK_UINT8  &value) const  
{
    if ((byteOffset < 0) || ((byteOffset + ODK_SIZEBIT8) > m_nBytes))
    {
        return false;
    }
    value = reinterpret_cast<ODK_UINT8&>(m_data[byteOffset]);
    return true;
}
bool CODK_CpuReadData :: ReadUINT8 ( const long byteOffset , ODK_UINT8 & value ) const { if ( ( byteOffset < 0 ) || ( ( byteOffset + ODK_SIZEBIT8 ) > m_nBytes ) ) { return false ; } value = reinterpret_cast < ODK_UINT8 & > ( m_data [ byteOffset ] ) ; return true ; }
ReadUINT8 : Reads a generic 8-bit value from the data area (used by public read methods)
ReadUINT8 : Reads a generic 8 - bit value from the data area ( used by public read methods )
// Buffer index to the data // Variable to store the read value // Verify offset is within data area // Read, convert, and return the data