OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [common/] [utils/] [tf_workparam.cpp] - Diff between revs 19 and 54

Show entire file | Details | Blame | View Log

Rev 19 Rev 54
Line 164... Line 164...
 
 
 
 
//! Сохранение параметров в памяти
//! Сохранение параметров в памяти
U32 TF_WorkParam::PutParamToMemory( char* ptr, U32 max_size )
U32 TF_WorkParam::PutParamToMemory( char* ptr, U32 max_size )
{
{
    char str[256];
    //char str[256];
    int len;
    //int len;
    int total=0;
    int total=0;
    U32 ii;
    //U32 ii;
    STR_CFG *cfg;
    //STR_CFG *cfg;
/*
/*
    *((U32*)ptr)=max_item;
    *((U32*)ptr)=max_item;
    total=4;
    total=4;
 
 
    for( ii=0; ii<max_item; ii++ )
    for( ii=0; ii<max_item; ii++ )
Line 214... Line 214...
}
}
 
 
//! Получение параметров из памяти
//! Получение параметров из памяти
void TF_WorkParam::GetParamFromMemory( char* ptr )
void TF_WorkParam::GetParamFromMemory( char* ptr )
{
{
    char *src=ptr;
    //char *src=ptr;
    U32 len;
    //U32 len;
    U32 n;
    //U32 n;
    n=*((U32*)ptr);
    //n=*((U32*)ptr);
    U32 ii;
    //U32 ii;
    int total=4;
    //int total=4;
/*
/*
    for( ii=0; ii<n; ii++ )
    for( ii=0; ii<n; ii++ )
    {
    {
        src=ptr+total;
        src=ptr+total;
        len=GetParamFromStr( src );
        len=GetParamFromStr( src );

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.