CC3200_bsp_generator.PeripheralRegisterGenerator.FormatToHex C# (CSharp) Method

FormatToHex() private static method

private static FormatToHex ( ulong addr, int length = 32 ) : string
addr ulong
length int
return string
        private static string FormatToHex(ulong addr, int length = 32)
        {
            string format = "0x{0:x" + length / 4 + "}";
            return string.Format(format, (uint)addr);
        }