|
AM243x MCU+ SDK
08.06.00
|
|
Go to the documentation of this file.
42 #include "../firmware/icssg_sddf.h"
66 #define PRU_ID_0 ( 0 )
67 #define PRU_ID_1 ( 1 )
70 #define NUM_SD_CH ( ICSSG_NUM_SD_CH )
72 #define SDFM_EVT ( TRIGGER_HOST_SDFM_EVT )
void SDFM_setAccOverSamplingRatio(sdfm_handle h_sdfm, uint8_t ch_id, uint8_t osr)
Configure Accumulator over sampling ratio.
void SDFM_setCompFilterThresholds(sdfm_handle h_sdfm, uint8_t ch_id, SDFM_ThresholdParms thresholdParms)
configuration of SDFM threshold values
void SDFM_enableComparator(sdfm_handle h_sdfm, uint8_t ch)
This API enables the Comparator for the selected channel.
SDFM * sdfm_handle
Definition: sddf_api.h:75
sdfm_handle SDFM_init(uint8_t pru_id)
Initialize SDFM instance.
void SDFM_configIepCount(sdfm_handle h_sdfm, uint32_t epwm_out_freq)
Configure iep increment & iep count in one epwm cycle.
void SDFM_configComparatorGpioPins(sdfm_handle h_sdfm, uint8_t ch, uint32_t gpio_base_addr, uint32_t pin_number, uint32_t threshold_type)
configure GPIO pin number and address for associate Channel Number
void SDFM_enable(sdfm_handle h_sdfm)
SDFM global enable.
void SDFM_configEcap(sdfm_handle h_sdfm, uint8_t ecap_divider)
Configure ecap parameters for generate 20MHz SD clock.
Structure defining SDFM thresholds parametrs.
Definition: sdfm_drv.h:232
void SDFM_configDataFilter(sdfm_handle h_sdfm, uint8_t ch_id, uint8_t filter)
configuration of SDFM channel Acc source (sync filter type). Current SDFM firmware implementation s...
void SDFM_setCompFilterOverSamplingRatio(sdfm_handle h_sdfm, uint16_t osr)
Configure iep count for over current sampling.
void SDFM_selectClockSource(sdfm_handle h_sdfm, uint8_t ch_id, SDFM_ClkSourceParms clkPrams)
configuration of SDFM channel clock source & clock inversion
Structure defining clk source for sdfm ch.
Definition: sdfm_drv.h:218
void SDFM_setEnableChannel(sdfm_handle h_sdfm, uint8_t channel_number)
Enable the channel specified by the channel number parameter.
uint32_t SDFM_getFilterData(uint8_t ch)
get sample data from DMEM
Structure defining SDFM interface.
Definition: sdfm_drv.h:305
void SDFM_setSampleReadingTime(sdfm_handle h_sdfm, float trig_samp_time)
configuration of sample read time one Epwm cycle
void SDFM_setFilterOverSamplingRatio(sdfm_handle h_sdfm, uint16_t nc_osr, uint16_t oc_osr)
Configure iep count for normal current sampling.
void SDFM_disableComparator(sdfm_handle h_sdfm, uint8_t ch)
This API disables the Comparator for the selected channel.