Texas Instruments TMS320C6000 Benutzerhandbuch

Seite von 62
AD535_reset
2-16
 
Asserts software reset
AD535_reset
Function
void AD535_reset(
  AD535_Handle hAD535 
);
Arguments
hAD535
Handle to codec channel, see 
AD535_open()
Return Value
none
Description
Asserts a software reset and sets all the registers to their power-on default
values.
Example
AD535_reset(hAD535);
Compile time constant
AD535_SUPPORT
Constant
AD535_SUPPORT
Description
Compile time constant that has a value of 1 if the board supports the
AD535 module and 0 otherwise. You are not required to use this constant.
Currently, all devices support this module.
Example
#if (AD535_SUPPORT)
  /* do AD535 operations */
#endif
Writes value to input of DAC
AD535_write
Function
void AD535_write(
  AD535_Handle  hAD535,
  int           val 
);
Arguments
hAD535
Handle to codec channel, see 
AD535_open()
val
Value to be written to DAC.
Return Value
none
Description
Writes value to the input of the DAC.
Example
To read from the codec and write back the same value, use:
AD535_write(hAD535,AD535_read(hAD535));