Bar Logo 3.8/7.6 kw Totem pole Demonstration Application (Part-No. (not specified))
 
Content
     
Loading...
Searching...
No Matches

System driver using dsPIC MCUs. More...

+ Collaboration diagram for System Driver:

Files

file  system.c
 This is the generated driver header file for the System driver.
 
file  system_types.h
 This is the generated driver types header file for the System driver.
 
file  system.c
 This is the generated driver header file for the System driver.
 
file  system_types.h
 This is the generated driver types header file for the System driver.
 

Enumerations

enum  CORCON_MODE_TYPE { CORCON_MODE_PORVALUES = 0x0020 , CORCON_MODE_ENABLEALLSATNORMAL_ROUNDBIASED = 0x00E2 , CORCON_MODE_ENABLEALLSATNORMAL_ROUNDUNBIASED = 0x00E0 , CORCON_MODE_DISABLEALLSAT_ROUNDBIASED = 0x0022 , CORCON_MODE_DISABLEALLSAT_ROUNDUNBIASED = 0x0020 , CORCON_MODE_ENABLEALLSATSUPER_ROUNDBIASED = 0x00F2 , CORCON_MODE_ENABLEALLSATSUPER_ROUNDUNBIASED = 0x00F0 }
 CORCON initialization type enumerator. More...
 

Functions

void SYSTEM_Initialize (void)
 Initializes the System module.
 
static void SYSTEM_CORCONInitialize ()
 Initializes the CPU core control register.
 
static void SYSTEM_CORCONModeOperatingSet (SYSTEM_CORCON_MODES modeValue)
 This inline function sets the CPU core control register operating mode to a value that is decided by the SYSTEM_CORCON_MODES argument.
 
static void SYSTEM_CORCONRegisterValueSet (uint16_t value)
 This inline function sets the value of CPU core control register.
 
static uint16_t SYSTEM_CORCONRegisterValueGet (void)
 This inline function gets the value of CPU core control register.
 
static uint32_t SYSTEM_DeviceIdRegisterAddressGet (void)
 This inline function gets the base address of the DEVID register for the currently selected device.
 

Detailed Description

Version
Driver Version 1.0.1
Version
Driver Version 1.0.1

Enumeration Type Documentation

◆ CORCON_MODE_TYPE

Section: Type defines

Enumerator
CORCON_MODE_PORVALUES 

Use POR values of CORCON

CORCON_MODE_ENABLEALLSATNORMAL_ROUNDBIASED 

Enable saturation for ACCA, ACCB and Dataspace write, enable normal ACCA/ACCB saturation mode and set rounding to Biased (conventional) mode. Rest of CORCON settings are set to the default POR values.

CORCON_MODE_ENABLEALLSATNORMAL_ROUNDUNBIASED 

Enable saturation for ACCA, ACCB and Dataspace write, enable normal ACCA/ACCB saturation mode and set rounding to Unbiased (convergent) mode. Rest of CORCON settings are set to the default POR values.

CORCON_MODE_DISABLEALLSAT_ROUNDBIASED 

Disable saturation for ACCA, ACCB and Dataspace write and set rounding to Biased (conventional) mode. Rest of CORCON settings are set to the default POR values.

CORCON_MODE_DISABLEALLSAT_ROUNDUNBIASED 

Disable saturation for ACCA, ACCB and Dataspace write and set rounding to Unbiased (convergent) mode. Rest of CORCON settings are set to the default POR values.

CORCON_MODE_ENABLEALLSATSUPER_ROUNDBIASED 

Enable saturation for ACCA, ACCB and Dataspace write, enable super ACCA/ACCB saturation mode and set rounding to Biased (conventional) mode. Rest of CORCON settings are set to the default POR values.

CORCON_MODE_ENABLEALLSATSUPER_ROUNDUNBIASED 

Enable saturation for ACCA, ACCB and Dataspace write, enable super ACCA/ACCB saturation mode and set rounding to Unbiased (convergent) mode. Rest of CORCON settings are set to the default POR values.

Definition at line 48 of file system_types.h.

Function Documentation

◆ SYSTEM_CORCONInitialize()

static void SYSTEM_CORCONInitialize ( )
inlinestatic
Returns
none

Definition at line 54 of file system.h.

◆ SYSTEM_CORCONModeOperatingSet()

static void SYSTEM_CORCONModeOperatingSet ( SYSTEM_CORCON_MODES modeValue)
inlinestatic
Parameters
[in]modeValue- SYSTEM_CORCON_MODES initialization mode specifier
Returns
none

Definition at line 66 of file system.h.

◆ SYSTEM_CORCONRegisterValueGet()

static uint16_t SYSTEM_CORCONRegisterValueGet ( void )
inlinestatic
Returns
value of the CPU core control register

Definition at line 87 of file system.h.

◆ SYSTEM_CORCONRegisterValueSet()

static void SYSTEM_CORCONRegisterValueSet ( uint16_t value)
inlinestatic
Parameters
[in]value- value that needs to be written to the CPU core control register
Returns
none

Definition at line 77 of file system.h.

◆ SYSTEM_DeviceIdRegisterAddressGet()

static uint32_t SYSTEM_DeviceIdRegisterAddressGet ( void )
inlinestatic
Returns
base address of the DEVID register

Definition at line 98 of file system.h.

◆ SYSTEM_Initialize()

void SYSTEM_Initialize ( void )
Returns
none

Definition at line 51 of file system.c.

+ Here is the call graph for this function: