--- Quote Start ---
originally posted by wei_chen0428@Mar 14 2006, 05:06 AM
int alt_avalon_spi_command(alt_u32 base, alt_u32 slave,
alt_u32 write_length, const alt_u8* wdata, alt_u32 read_length,
alt_u8* read_data, alt_u32 flags)
1) where can i find what value i should put for alt_u32 slave?
2) what value should i put for flag?
3) if i m going to just send the data, in mosi mode, what value should i put for read_length and read_data?
4) do you have an example demostrating how to use this command ?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=13399)
--- quote end ---
--- Quote End ---
May You see source code of "altera_avalon_spi.c" ?
If you can do it you can find out function alt_avalon_spi_command.
And see all information about this function and its variables.
I recommend you read manual about SPI in SOPC builder