Defines | Functions
ramcontroller.h File Reference

Go to the source code of this file.

Defines

#define __MSP430_HAS_RC__
#define RAMCONTROL_SECTOR0   RCRS0OFF
#define RAMCONTROL_SECTOR1   RCRS1OFF
#define RAMCONTROL_SECTOR2   RCRS2OFF
#define RAMCONTROL_SECTOR3   RCRS3OFF
#define RAMCONTROL_SECTOR4   RCRS4OFF
#define RAMCONTROL_SECTOR5   RCRS5OFF
#define RAMCONTROL_SECTOR6   RCRS6OFF
#define RAMCONTROL_SECTOR7   RCRS7OFF

Functions

void ramController_setSectorOff (unsigned int baseAddress, unsigned char sector)
unsigned char ramController_getSectorState (unsigned int baseAddress, unsigned char sector)

Define Documentation

#define __MSP430_HAS_RC__
#define RAMCONTROL_SECTOR0   RCRS0OFF
#define RAMCONTROL_SECTOR1   RCRS1OFF
#define RAMCONTROL_SECTOR2   RCRS2OFF
#define RAMCONTROL_SECTOR3   RCRS3OFF
#define RAMCONTROL_SECTOR4   RCRS4OFF
#define RAMCONTROL_SECTOR5   RCRS5OFF
#define RAMCONTROL_SECTOR6   RCRS6OFF
#define RAMCONTROL_SECTOR7   RCRS7OFF

Function Documentation

void ramController_setSectorOff ( unsigned int  baseAddress,
unsigned char  sector 
)

Set specified RAM sector off

Parameters:
baseAddressis the base address of the Timer module.
sectoris specified sector to be set off. Valid values are a logical OR of RAMCONTROL_SECTOR0 RAMCONTROL_SECTOR1 RAMCONTROL_SECTOR2 RAMCONTROL_SECTOR3 RAMCONTROL_SECTOR4 RAMCONTROL_SECTOR5 RAMCONTROL_SECTOR6 RAMCONTROL_SECTOR7

Modified register RCCTL0

Returns:
None

References ASSERT, HWREG, RAMCONTROL_SECTOR0, RAMCONTROL_SECTOR1, RAMCONTROL_SECTOR2, and RAMCONTROL_SECTOR3.

unsigned char ramController_getSectorState ( unsigned int  baseAddress,
unsigned char  sector 
)

Get RAM sector ON/OFF status

Parameters:
baseAddressis the base address of the Timer module.
sectoris specified sector Valid values are a logical OR of RAMCONTROL_SECTOR0 RAMCONTROL_SECTOR1 RAMCONTROL_SECTOR2 RAMCONTROL_SECTOR3 RAMCONTROL_SECTOR4 RAMCONTROL_SECTOR5 RAMCONTROL_SECTOR6 RAMCONTROL_SECTOR7

Modified register RCCTL0

Returns:
Mask of the sector state that are ON

References ASSERT, HWREGB, RAMCONTROL_SECTOR0, RAMCONTROL_SECTOR1, RAMCONTROL_SECTOR2, and RAMCONTROL_SECTOR3.


Copyright 2012, Texas Instruments Incorporated