| BSL430.NET 1.3.4

Static Public Member Functions | List of all members
BSL430_NET.FirmwareTools.Extensions Class Reference

Extensions class wrapping some extensions methods like CRC calc, ToByteArray or ToExt. More...

## Static Public Member Functions
static byte[] | ToByteArray (this string HexString)
| Covnerts hex string to byte array. More...
static string | ToExt (this FwTools.FwFormat format)
| Extension method to provide firmware format ext string with dot. More...
static int | Crc16Ccitt (this IEnumerable< byte > bytes)
| CRC-16-CCITT: Polynom = 0x1021, Initial = 0xFFFF More...
static int | Crc16 (this IEnumerable< byte > bytes, int _polynom, int _init)
| CRC-16 generic implementation that needs a specific polynom and initial values. More...

## Detailed Description

Extensions class wrapping some extensions methods like CRC calc, ToByteArray or ToExt.

## Member Function Documentation

## ◆ Crc16()

static int BSL430_NET.FirmwareTools.Extensions.Crc16 | ( | this IEnumerable< byte > | bytes,
|  | int | _polynom,
|  | int | _init
| ) |  |
| static

CRC-16 generic implementation that needs a specific polynom and initial values.

## ◆ Crc16Ccitt()

static int BSL430_NET.FirmwareTools.Extensions.Crc16Ccitt | ( | this IEnumerable< byte > | bytes | ) |
| static

CRC-16-CCITT: Polynom = 0x1021, Initial = 0xFFFF

## ◆ ToByteArray()

static byte [] BSL430_NET.FirmwareTools.Extensions.ToByteArray | ( | this string | HexString | ) |
| static

Covnerts hex string to byte array.

## ◆ ToExt()

static string BSL430_NET.FirmwareTools.Extensions.ToExt | ( | this FwTools.FwFormat | format | ) |
| static

Extension method to provide firmware format ext string with dot.

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

- D:/PROJECTS/C#/BSL430.NET/src/BSL430.NET.FirmwareTools/Extensions.cs