I’ve been using the Cheetah SPI Host Adapter for a while – today I have a question. I’m working on a prototype SPI device with a data length of 33 bits – it’s not based on a “normal” byte. I’ve been looking at the Cheetah Software API. Is there a function I can use for transmitting variable length data?
Response from Technical Support:Thanks for your question! For interfacing with your SPI device, we recommend using the Promira Serial Platform and the appropriate SPI application for your setup. With the Promira Serial Platform and Promira Software API I2C/SPI Active, you can program the desired word length – the Cheetah adapter does not support this feature.
Here is the API function that you could use with the Promira platform to queue a command that writes a stream of the same word to the downstream SPI slave device:
int ps_queue_spi_write_word (
PromiraSpiIOMode io,
u08 word_size,
u32 out_num_words,
u32 word);
Arguments:
io: IO mode flag as defined in table 12
word_size: number of bits for a word, between 2 and 32
out_num_words: number of words to send word value of the word to queue
Return Value:
Function:
Three levels of SPI applications are available for the Promira platform:
Here are some of the advanced features provided by the Promira platform:
In addition, you can download applications to the Promira platform at any time – easily upgrade your device when you need new features.
We hope this answers your question. Additional resources that you may find helpful include the following:
More questions? Other projects? You can contact us at sales@totalphase.com. You can also request a demo that applies to your application, as well as ask questions about the Promira Serial Analyzer and other Total Phase products.