ArmSys Support
ArmsysApi  0.12.18

#include <BFlash.h>

Public Member Functions

 BFlash ()
 
BError init ()
 Initialise. More...
 
BError programEnable (Bool on)
 Enable/disable programming. More...
 
BError programErase (BUInt page)
 Erase the page. More...
 
BError programWord (BUInt32 address, BUInt32 data)
 Program a 32bit wide memory location,. More...
 
BError programWord (BUInt32 address, BUInt16 data)
 Program a 16bit wide memory location,. More...
 
BError disableAccess ()
 Disable access to FLASH to protect against program theft. More...
 
BError enableAccess ()
 Enable access to FLASH. More...
 
void writeProtect (BUInt32 page, Bool on)
 Write protect the given page. More...
 
Bool getWriteProtect (BUInt32 page)
 Gets write protect status for the given page. More...
 
BInt32 page (BUInt32 address)
 Return page address is in. More...
 
BUInt32 pageAddress (BUInt32 page)
 Return start address of page. More...
 

Protected Member Functions

BError waitUntillReady (Bool quick=0)
 Waits while FLASH operation is on=going. More...
 

Private Attributes

BUInt32 odummy
 To pad object to 32bit boundary. More...
 

Constructor & Destructor Documentation

◆ BFlash()

BFlash::BFlash ( )

Member Function Documentation

◆ disableAccess()

BError BFlash::disableAccess ( )

Disable access to FLASH to protect against program theft.

◆ enableAccess()

BError BFlash::enableAccess ( )

Enable access to FLASH.

◆ getWriteProtect()

Bool BFlash::getWriteProtect ( BUInt32  page)

Gets write protect status for the given page.

◆ init()

BError BFlash::init ( )

Initialise.

◆ page()

BInt32 BFlash::page ( BUInt32  address)

Return page address is in.

◆ pageAddress()

BUInt32 BFlash::pageAddress ( BUInt32  page)

Return start address of page.

◆ programEnable()

BError BFlash::programEnable ( Bool  on)

Enable/disable programming.

◆ programErase()

BError BFlash::programErase ( BUInt  page)

Erase the page.

◆ programWord() [1/2]

BError BFlash::programWord ( BUInt32  address,
BUInt32  data 
)

Program a 32bit wide memory location,.

◆ programWord() [2/2]

BError BFlash::programWord ( BUInt32  address,
BUInt16  data 
)

Program a 16bit wide memory location,.

◆ waitUntillReady()

BError BFlash::waitUntillReady ( Bool  quick = 0)
protected

Waits while FLASH operation is on=going.

◆ writeProtect()

void BFlash::writeProtect ( BUInt32  page,
Bool  on 
)

Write protect the given page.

Member Data Documentation

◆ odummy

BUInt32 BFlash::odummy
private

To pad object to 32bit boundary.


The documentation for this class was generated from the following files: