iLLD_TC27xD
1.0
|
IFX_EXTERN void IfxVadc_Adc_deInitGroup | ( | IfxVadc_Adc_Group * | group) |
Reset the VADC group.
group | pointer to the VADC group |
Example Usage :How to use the VADC ADC Interface driver?
Definition at line 114 of file IfxVadc_Adc.c.
IFX_EXTERN void IfxVadc_Adc_getGroupConfig | ( | IfxVadc_Adc_Group * | group, |
IfxVadc_Adc_GroupConfig * | config | ||
) |
Get the current group configuration (e.g. vadc frequency)
group | pointer to the VADC group |
config | pointer to the VADC group configuration |
Example Usage :How to use the VADC ADC Interface driver?
Definition at line 211 of file IfxVadc_Adc.c.
IFX_INLINE Ifx_VADC_G * IfxVadc_Adc_getGroupRegsFromGroup | ( | const IfxVadc_Adc_Group * | group) |
Gets the current group register set.
group | Group handle data structure |
Ifx_VADC* vadc = Ifx_VADC_G* group = &MODULE_VADC.G[0]; // for group 0
uint32 channels = (1 << 5) | (1 << 2); // enable channel #5 and #2 uint32 mask = (1 << 7) | (1 << 5) | (1 << 2); // modify the selection for channel #7, #5 and #2; channel #7 will be disabled
//confiure wait for read mode for global result register IfxVadc_configureWaitForReadMode(group,IfxVadc_ChannelResult0, TRUE); IfxVadc_configureWaitForReadMode(group,IfxVadc_ChannelResult1, TRUE);
// configure scan IfxVadc_setScan(group, channels, mask);
// enable auto scan IfxVadc_setAutoScan(group, TRUE);
// start the scan IfxVadc_startScan(group);
// wait for conversion to finish
// fetch the 2 results of conversion for group 0 Ifx_VADC_RES results[10]; result = IfxVadc_getGroupResult(group, results, 0, 2);
Definition at line 1195 of file IfxVadc_Adc.h.
Referenced by IfxVadc_Adc_deInitGroup(), IfxVadc_Adc_getChannelConfig(), and IfxVadc_Adc_initChannel().
IFX_INLINE void IfxVadc_Adc_getGroupResult | ( | IfxVadc_Adc_Group * | group, |
Ifx_VADC_RES * | results, | ||
uint32 | resultOffset, | ||
uint32 | numResults | ||
) |
Get conversion result for the group.
group | pointer to the VADC group |
results | pointer to scaled conversion results |
resultOffset | offset for the first result |
numResults | number of results |
Definition at line 1201 of file IfxVadc_Adc.h.
IFX_INLINE IfxVadc_GroupId IfxVadc_Adc_getMasterId | ( | IfxVadc_GroupId | slave, |
IfxVadc_Adc_SYNCTR_STSEL | masterIndex | ||
) |
Gets the master id.
slave | Index of the group |
masterIndex | master kernel index |
Definition at line 78 of file IfxVadc_Adc.c.
Referenced by IfxVadc_Adc_getGroupConfig().
IFX_INLINE IfxVadc_Adc_SYNCTR_STSEL IfxVadc_Adc_getMasterKernelIndex | ( | IfxVadc_GroupId | slave, |
IfxVadc_GroupId | master | ||
) |
Gets the current master kernel index.
slave | Index of the group |
master | Index of the group |
Definition at line 104 of file IfxVadc_Adc.c.
Referenced by IfxVadc_Adc_initGroup().
IFX_INLINE Ifx_VADC * IfxVadc_Adc_getVadcFromGroup | ( | const IfxVadc_Adc_Group * | group) |
Gets the current group module register address.
group | Group handle data structure |
Definition at line 1245 of file IfxVadc_Adc.h.
Referenced by IfxVadc_Adc_deInitGroup(), and IfxVadc_Adc_initChannel().
IFX_EXTERN IfxVadc_Status IfxVadc_Adc_initGroup | ( | IfxVadc_Adc_Group * | group, |
const IfxVadc_Adc_GroupConfig * | config | ||
) |
Initialise the VADC group (also autoscan and queue modes) Slave Groups must initialize first.
group | pointer to the VADC group |
config | pointer to the VADC group configuration |
For coding example see: How to use the VADC ADC Interface driver?
Definition at line 442 of file IfxVadc_Adc.c.
IFX_EXTERN void IfxVadc_Adc_initGroupConfig | ( | IfxVadc_Adc_GroupConfig * | config, |
IfxVadc_Adc * | vadc | ||
) |
Initialise buffer with default VADC configuration.
config | pointer to the VADC group configuration |
vadc | pointer to the VADC module |
For coding example see: How to use the VADC ADC Interface driver?
Definition at line 665 of file IfxVadc_Adc.c.