
73M1822/73M1922 Hardware Module for SMDK412 User Guide UG_1x22_054
20 Rev. 1.1
4.4 tsc_1x22_mafe_read
Description
The user can call this tsc_1x22_mafe_read command to obtain MAFE audio samples. The read
command reads as many 16 bit samples into the user supplied kernel space buffer as possible and
returns the amount of data that was copied.
Prototype
size_t tsc_1x22_mafe_read (void * buf, size_t buf_size);
Parameters
Data Type Name Description
File descriptor.
Kernel buffer to read samples into.
Maximum size of data that can be copied.
Return Values
Data Type Description
Amount of data that was actually copied.
4.5 tsc_1x22_mafe_write
Description
The user may call tsc_1x22_mafe_write to transmit MAFE audio samples. The write command
copies as many 16 bit samples from the user supplied kernel space buffer as possible and returns the
amount of data that was copied.
Prototype
size_t write (const void * buf, size_t buf_size);
Parameters
Data Type Name Description
File descriptor.
Kernel buffer to copy samples from.
Maximum size of data that can be copied.
Return Values
Data Type Description
Amount of data that was actually copied.
Komentáře k této Příručce