Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example

Public functions of the DSP PRAL driver. More...

+ Collaboration diagram for Public Functions:

Functions

volatile uint16_t Dsp_SetConfig (volatile struct DSP_CONFIG_s dsp_cfg)
 Initializes the DSP engine in accordance to user settings. More...
 
volatile struct DSP_CONFIG_s Dsp_GetConfig (void)
 Reads the DSP engine configuration. More...
 

Detailed Description

Public functions of the DSP PRAL driver.

This is the detailed description of public functions of the DSP PRAL driver

Function Documentation

◆ Dsp_GetConfig()

struct DSP_CONFIG_s Dsp_GetConfig ( void  )

Reads the DSP engine configuration.

Returns
struct DSP_CONFIG_s

This routine writes a DSP user-configuration into the core configuration register and verifies the data has been written correctly.

Definition at line 53 of file p33c_dsp.c.

◆ Dsp_SetConfig()

uint16_t Dsp_SetConfig ( volatile struct DSP_CONFIG_s  dsp_cfg)

Initializes the DSP engine in accordance to user settings.

Parameters
dsp_cfgDSP configuration SFR object of type struct DSP_CONFIG_s
Returns
unsigned integer (0=failure, 1=success)

This routine writes a DSP user-configuration into the core configuration register and verifies the data has been written correctly.

Definition at line 53 of file p33c_dsp.c.