C# Class stm32_bsp_generator.PeripheralRegisterGenerator

Datei anzeigen Open project: sysprogs/BSPTools

Public Methods

Method Description
DeepCopy ( HardwareRegisterSet set ) : HardwareRegisterSet
FormatToHex ( ulong addr, int length = 32 ) : string
GenerateFamilyPeripheralRegisters ( string PeripheralHeaderFile, RegisterParserConfiguration cfg, RegisterParserErrors errors, BSPGenerationTools atCore ) : HardwareRegisterSet[]
LocateFamilyPeripheralHeaderFile ( string dir, string family ) : string
ParseHex ( string hex ) : ulong

Private Methods

Method Description
DeepCopy ( HardwareRegister reg ) : HardwareRegister
DeepCopy ( HardwareSubRegister subreg ) : HardwareSubRegister
ExtractFirstBitAndSize ( ulong val, int &size, int &firstBit ) : void
ProcessRegisterSetAddresses ( string fn, string file, RegisterParserConfiguration cfg, RegisterParserErrors err ) : ulong>.Dictionary
ProcessRegisterSetNames ( string file ) : Dictionary>
ProcessRegisterSetTypes ( string file, string>.Dictionary &nested_types ) : HardwareRegisterSet>.Dictionary
ProcessSubregisters ( string fileContents, string fileName, RegisterParserConfiguration cfg, RegisterParserErrors errors ) : List>.Dictionary

Method Details

DeepCopy() public static method

public static DeepCopy ( HardwareRegisterSet set ) : HardwareRegisterSet
set HardwareRegisterSet
return HardwareRegisterSet

FormatToHex() public static method

public static FormatToHex ( ulong addr, int length = 32 ) : string
addr ulong
length int
return string

GenerateFamilyPeripheralRegisters() public static method

public static GenerateFamilyPeripheralRegisters ( string PeripheralHeaderFile, RegisterParserConfiguration cfg, RegisterParserErrors errors, BSPGenerationTools atCore ) : HardwareRegisterSet[]
PeripheralHeaderFile string
cfg RegisterParserConfiguration
errors RegisterParserErrors
atCore BSPGenerationTools
return HardwareRegisterSet[]

LocateFamilyPeripheralHeaderFile() public static method

public static LocateFamilyPeripheralHeaderFile ( string dir, string family ) : string
dir string
family string
return string

ParseHex() public static method

public static ParseHex ( string hex ) : ulong
hex string
return ulong