Visible to Intel only — GUID: ojm1702374880509
Ixiasoft
Visible to Intel only — GUID: ojm1702374880509
Ixiasoft
5.6.1. Driver API
Prototype: | void adc_stop(int sequencer_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Writes 0 to the Sequencer CMD register RUN bit, and polls the RUN bit until it is 0. |
Prototype: | void adc_start(int sequencer_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Writes 1 to the Sequencer CMD register RUN bit. |
Prototype: | void adc_set_mode_run_once(int sequencer_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Writes 1 to the Sequencer CMD register MODE bit once. Note: Stop the ADC before calling this function. While RUN bit is set, changing ADC mode has no effect. |
Prototype: | void adc_set_mode_run_continuously(int sequencer_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Writes 1 to the Sequencer CMD register MODE bit to continuous. Note: Stop the ADC before calling this function. While RUN bit is set, changing ADC mode has no effect. |
Prototype: | void adc_recalibrate(int sequencer_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | The function performs as follows,
|
Prototype: | void adc_interrupt_enable(int sample_store_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Sets the M_EOP bit in the ADC Sample Storage IER register. |
Prototype: | void adc_interrupt_disable(int sample_store_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Clears the M_EOP bit in the ADC Sample Storage IER register. |
Prototype: | void adc_clear_interrupt_status(int sample_store_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Clears the EOP bits in the Sample Storage ISR register. |
Prototype: | void adc_wait_for_interrupt(int sample_store_base) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Waits while the EOP bit of Sample Storage ISR register is 0. |
Prototype: | int adc_interrupt_asserted(int sample_store_base) |
Include: |
|
Parameter: |
|
Return: | Return -1 if EOP bit is set, 0 if otherwise |
Description: | Reads the EOP bit of Sample Storage IRQ ISR register. |
Prototype: | void alt_adc_word_read(alt_u32 sample_store_base, alt_u32* dest_ptr, alt_u32 len) |
Include: |
|
Parameter: |
|
Return: | - |
Description: | Reads words from the sample store. |