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

Subversion Repositories xulalx25soc

[/] [xulalx25soc/] [trunk/] [bench/] [cpp/] [sdspisim.h] - Diff between revs 75 and 95

Show entire file | Details | Blame | View Log

Rev 75 Rev 95
Line 59... Line 59...
        FILE            *m_dev;
        FILE            *m_dev;
        unsigned long   m_devblocks;
        unsigned long   m_devblocks;
 
 
        int             m_last_sck, m_delay, m_mosi;
        int             m_last_sck, m_delay, m_mosi;
        bool            m_busy, m_debug, m_block_address, m_altcmd_flag,
        bool            m_busy, m_debug, m_block_address, m_altcmd_flag,
                        m_syncd, m_host_supports_high_capacity;
                        m_syncd, m_host_supports_high_capacity, m_reading_data,
 
                        m_have_token;
 
 
        RESET_STATES    m_reset_state;
        RESET_STATES    m_reset_state;
 
 
        int             m_cmdidx, m_bitpos, m_rspidx, m_rspdly, m_blkdly,
        int             m_cmdidx, m_bitpos, m_rspidx, m_rspdly, m_blkdly,
                                m_blklen, m_blkidx, m_last_miso, m_powerup_busy;
                                m_blklen, m_blkidx, m_last_miso, m_powerup_busy,
 
                                m_rxloc;
        char            m_cmdbuf[8], m_dat_out, m_dat_in;
        char            m_cmdbuf[8], m_dat_out, m_dat_in;
        char            m_rspbuf[SDSPI_RSPLEN];
        char            m_rspbuf[SDSPI_RSPLEN];
        char            m_block_buf[SDSPI_MAXBLKLEN];
        char            m_block_buf[SDSPI_MAXBLKLEN];
        char            m_csd[SDSPI_CSDLEN], m_cid[SDSPI_CIDLEN];
        char            m_csd[SDSPI_CSDLEN], m_cid[SDSPI_CIDLEN];
 
 
Line 78... Line 80...
        void    debug(const bool dbg) { m_debug = dbg; }
        void    debug(const bool dbg) { m_debug = dbg; }
        bool    debug(void) const { return m_debug; }
        bool    debug(void) const { return m_debug; }
        int     operator()(const int csn, const int sck, const int dat);
        int     operator()(const int csn, const int sck, const int dat);
        unsigned cmdcrc(int ln, char *buf) const;
        unsigned cmdcrc(int ln, char *buf) const;
        bool    check_cmdcrc(char *buf) const;
        bool    check_cmdcrc(char *buf) const;
 
        unsigned blockcrc(int ln, char *buf) const;
        void    add_block_crc(int ln, char *buf) const;
        void    add_block_crc(int ln, char *buf) const;
};
};
 
 
#endif
#endif
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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