Tsc_1x22_mafe_read, Tsc_1x22_mafe_write – Maxim Integrated 73M1822/73M1922 Hardware Module for SMDK412 User Manual

Page 20

Advertising
background image

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

int

fd

File descriptor.

void *

vuf

Kernel buffer to read samples into.

size_t

vuf_size

Maximum size of data that can be copied.


Return Values

Data Type

Description

size_t

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

int

fd

File descriptor.

const void *

buf

Kernel buffer to copy samples from.

size_t

buf_size

Maximum size of data that can be copied.


Return Values

Data Type

Description

size_t

Amount of data that was actually copied.

Advertising