| Electronic Components Datasheet Search |
|
UM0851 Datasheet(PDF) 202 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0851 Datasheet(HTML) 202 Page - STMicroelectronics |
|
202 / 245 page ![]() Audio/video drivers UM0851 202/245 Doc ID 16604 Rev 2 The API is called only once at the start of bufferization. The only way to change the channel configuration is by resetting the device. Setting the maximum channel as 'n' (can be 0. 2, 4, 8,16 ) means dividing the buffer memory into 'n' equal blocks. /* max_chan: specifies the maximum number of channels. It could be 0,2,4,8 or 16. It will return on success and negative value on error. */ spear_tdm_bfr_max_chan (u32 max_chan); Frame size configuration This API configures the number of samples that must be compiled in buffering mode before switching the banks and interrupting the processor. /* frame_size: specifies number of samples It will return zero on success and negative value on error. */ spear_tdm_bfr_frame_size(u32 frame_size); Getting timeslot information This API is used to get timeslot information. It returns a pointer to the timeslot structure, containing the necessary information for switching/bufferization.This information is needed to start bufferization or switching. It contains the information about endianess of the device, timeslot number for which the bufferization or switching takes place. It also contains the information about the channel number for bufferization. More details on the timeslot structure are given at the beginning of Section 8.2.3: TDM layer interface /* Index: represent the timeslot number for which switching/bufferization takes place. Return timeslot structure on success and zero if the index is greater than the maximum timeslot value. */ spear_tdm_ts_get(int index); Get bufferization channel This API gives the unused channel number for bufferization. If the channel is not available it will return an error. /* Return channel number on success and negative value on error. Note : Not used in switching . */ spear_tdm_bfr_get (struct spear_ts *ts); struct spear_ts { u8 endianess; /* endianness of the device (little ending/big endian)*/ int ts_index; /* timeslot number for which bufferization/switching takes place */ int bfr_index; /* represents channel number for bufferization. Valid values are from 0-15*/ struct spear_ts *ts_sw; /* */ void __iomem *io_base_act_mem; /* action memory base address (tdm base address + action memory base address) */ int bfr_dir; /* Direction for the bufferization(IN/OUT/BOTH) */ u16 bfr_active; /* field value 1 shows bufferization is start, 0 means bufferization is stopped. */ int status; /* */ |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |