What does the HAL_SAI_Receive() function take in as the parameter- 'Size'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-24 5:13 PM
I am trying to use the HAL_SAI_Receive() function from the STMF767xx SAI drivers to receive some data from a device and I would like to know what does the 'Size' parameter actually represent.
My scenario is as follows:
1.) The SAI operates in slave mode
2.) data size in a slot is 8 bits
3.) FS active length (on time of the FS pulse) is 32 bits
4.) Each 4 slots per FS pulse
In the above scenario, would the 'Size' parameter be ? would it be equal to :
(a.)The data size per slot? or would it be (or)
(b.)number of slots*data size per slot? (or)
(c.) something else?
Solved! Go to Solution.
- Labels:
-
SAI
-
STM32F7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-24 6:51 PM
It is the number of data words to receive in units of the datasize you have defined.
In this case, if you want to receive 32 bits and your data size is 8 bits, it should be 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-24 6:51 PM
It is the number of data words to receive in units of the datasize you have defined.
In this case, if you want to receive 32 bits and your data size is 8 bits, it should be 4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-24 7:49 PM
This is clear. Thank you @TDK​
