| BSL430.NET 1.3.4

Public Member Functions | List of all members
BSL430_NET.IBsl430Net Interface Reference

Public interface of BSL430.NET library. More...

Inheritance diagram for BSL430_NET.IBsl430Net:

## Public Member Functions
ScanAllResult | ScanAllEx (ScanOptions ScanOpt=ScanOptions.None)
| Detailed Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns ScanAllResult with 4 specific ScanResult classes, each with Status and List of Devices - Bsl430NetDevice childs. More...
ScanResult< Bsl430NetDevice > | ScanAll (ScanOptions ScanOpt=ScanOptions.None)
| Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice. More...
ScanResult< Tdev > | Scan< Tdev > (ScanOptions ScanOpt=ScanOptions.None)
| Detailed Scan for available devices in single mode (FTDI / libftdi / USB / Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice. More...
StatusEx | Erase (Bsl430NetDevice Device=null)
| Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). More...
StatusEx | Erase (string DeviceName)
| Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). device_name case dont matter. More...
StatusEx | Upload (string FirmwarePath, Bsl430NetDevice Device=null, byte[] Password=null)
| Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More...
StatusEx | Upload (string FirmwarePath, string DeviceName, byte[] Password=null)
| Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More...
StatusEx | Download (byte[] Password, int AddrStart, int DataSize, out List< byte > Data, Bsl430NetDevice Device=null)
| Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More...
StatusEx | Download (byte[] Password, int AddrStart, int DataSize, out List< byte > Data, string DeviceName)
| Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte. More...
Status | SetBaudRate (BaudRate BaudRate)
| Sets baud rate. Default is 9600 bps (9600). Baud rate is applicable only in UART mode and only in some BSL revs. More...
Status | SetInvokeMechanism (InvokeMechanism InvokeMechanism)
| Sets invoke mechanism mode. Default is DTR_RST__RTS_TEST (0). Note that USB HID mode requires manual BSL invocation. More...
Status | SetMCU (MCU Mcu)
| Sets MCU family. Default is MSP430_F5xx (4). Please see TI BSL doc (slau319t.pdf) for supported MCUs and their modes. More...
BaudRate | GetBaudRate ()
| Returns currently set baud rate. More...
InvokeMechanism | GetInvokeMechanism ()
| Returns currently set invoke mechanism. More...
MCU | GetMCU ()
| Returns currently set MCU family. More...
Mode | GetMode ()
| Returns current BSL430.NET instance operating mode (UART_FTDXX, UART_libftdi, UART_Serial, USB_HID). More...

## Detailed Description

Public interface of BSL430.NET library.

## Member Function Documentation

## ◆ Download() [1/2]

StatusEx BSL430_NET.IBsl430Net.Download | ( | byte[] | Password,
|  | int | AddrStart,
|  | int | DataSize,
|  | out List< byte > | Data,
|  | Bsl430NetDevice | Device = `null`
| ) |  |

Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ Download() [2/2]

StatusEx BSL430_NET.IBsl430Net.Download | ( | byte[] | Password,
|  | int | AddrStart,
|  | int | DataSize,
|  | out List< byte > | Data,
|  | string | DeviceName
| ) |  |

Downloads bytes from target MCU starting from address AddrStart to AddrStart + DataSize. If wrong password is entered, mass erase is auto executed as a safety measure, erasing entire flash. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ Erase() [1/2]

StatusEx BSL430_NET.IBsl430Net.Erase | ( | Bsl430NetDevice | Device = `null` | ) |

Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf).

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ Erase() [2/2]

StatusEx BSL430_NET.IBsl430Net.Erase | ( | string | DeviceName | ) |

Mass erase deletes the entire flash memory area except Information Memory if protocol 5xx6xx is used. Please see MCU datasheet for detailed information, or TI BSL doc (slau319t.pdf). device_name case dont matter.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ GetBaudRate()

BaudRate BSL430_NET.IBsl430Net.GetBaudRate | ( |  | ) |

Returns currently set baud rate.

Implemented in BSL430_NET.BSL430NET.

## ◆ GetInvokeMechanism()

InvokeMechanism BSL430_NET.IBsl430Net.GetInvokeMechanism | ( |  | ) |

Returns currently set invoke mechanism.

Implemented in BSL430_NET.BSL430NET.

## ◆ GetMCU()

MCU BSL430_NET.IBsl430Net.GetMCU | ( |  | ) |

Returns currently set MCU family.

Implemented in BSL430_NET.BSL430NET.

## ◆ GetMode()

Mode BSL430_NET.IBsl430Net.GetMode | ( |  | ) |

Returns current BSL430.NET instance operating mode (UART_FTDXX, UART_libftdi, UART_Serial, USB_HID).

Implemented in BSL430_NET.BSL430NET.

## ◆ Scan< Tdev >()

ScanResult<Tdev> BSL430_NET.IBsl430Net.Scan< Tdev > | ( | ScanOptions | ScanOpt = `ScanOptions.None` | ) |

Detailed Scan for available devices in single mode (FTDI / libftdi / USB / Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

Type Constraints

  Tdev | : | Bsl430NetDevice |

## ◆ ScanAll()

ScanResult<Bsl430NetDevice> BSL430_NET.IBsl430Net.ScanAll | ( | ScanOptions | ScanOpt = `ScanOptions.None` | ) |

Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns generic ScanResult class with Status and List of Devices - Bsl430NetDevice.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ ScanAllEx()

ScanAllResult BSL430_NET.IBsl430Net.ScanAllEx | ( | ScanOptions | ScanOpt = `ScanOptions.None` | ) |

Detailed Scan for all available devices in multimode (FTDI, libftdi, USB and Serial). Returns ScanAllResult with 4 specific ScanResult classes, each with Status and List of Devices - Bsl430NetDevice childs.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ SetBaudRate()

Status BSL430_NET.IBsl430Net.SetBaudRate | ( | BaudRate | BaudRate | ) |

Sets baud rate. Default is 9600 bps (9600). Baud rate is applicable only in UART mode and only in some BSL revs.

Implemented in BSL430_NET.BSL430NET.

## ◆ SetInvokeMechanism()

Status BSL430_NET.IBsl430Net.SetInvokeMechanism | ( | InvokeMechanism | InvokeMechanism | ) |

Sets invoke mechanism mode. Default is DTR_RST__RTS_TEST (0). Note that USB HID mode requires manual BSL invocation.

Implemented in BSL430_NET.BSL430NET.

## ◆ SetMCU()

Status BSL430_NET.IBsl430Net.SetMCU | ( | MCU | Mcu | ) |

Sets MCU family. Default is MSP430_F5xx (4). Please see TI BSL doc (slau319t.pdf) for supported MCUs and their modes.

Implemented in BSL430_NET.BSL430NET.

## ◆ Upload() [1/2]

StatusEx BSL430_NET.IBsl430Net.Upload | ( | string | FirmwarePath,
|  | Bsl430NetDevice | Device = `null`,
|  | byte[] | Password = `null`
| ) |  |

Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

## ◆ Upload() [2/2]

StatusEx BSL430_NET.IBsl430Net.Upload | ( | string | FirmwarePath,
|  | string | DeviceName,
|  | byte[] | Password = `null`
| ) |  |

Uploads data from firmware_path to target MCU. Supported file formats are TI-TXT, Intel-HEX and ELF. If none, null or invalid password is entered, mass erase is executed first. device_name case dont matter. Password is last 16-byte (F543x-non-A only) or 32-byte (others) of IVT (FFE0-FFFF), if newer 5xx/6xx MCU is used. If MCU from older series is used (1xx/2xx/4xx), password is exactly 20-byte long. Mostly it is 32-byte.

Exceptions

  Bsl430NetException |

Implemented in BSL430_NET.BSL430NET.

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

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