Documentation ¶
Overview ¶
certificates.go - A firmware uploader for the WiFi101 module. Copyright (c) 2015 Arduino LLC. All right reserved.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Index ¶
- Variables
- func ConvertCertEntries(entries []CertEntry) []byte
- func ConvertCertificates(directory string, addresses []string) ([]byte, error)
- func Run(ctx *context.Context) error
- type CertEntry
- type Flasher
- func (flasher *Flasher) Close() error
- func (flasher *Flasher) Erase(address uint32, length uint32) error
- func (flasher *Flasher) GetMaximumPayloadSize() (uint16, error)
- func (flasher *Flasher) Hello() error
- func (flasher *Flasher) Read(address uint32, length uint32) ([]byte, error)
- func (flasher *Flasher) Write(address uint32, buffer []byte) error
- type FlasherError
Constants ¶
This section is empty.
Variables ¶
var START_PATTERN = []byte{0x01, 0xF1, 0x02, 0xF2, 0x03, 0xF3, 0x04, 0xF4, 0x05, 0xF5, 0x06, 0xF6, 0x07, 0xF7, 0x08, 0xF8}
Functions ¶
func ConvertCertEntries ¶
func ConvertCertificates ¶
Types ¶
type Flasher ¶
type Flasher struct {
// contains filtered or unexported fields
}
func OpenFlasher ¶
func (*Flasher) GetMaximumPayloadSize ¶
Get maximum payload size for upload.
func (*Flasher) Hello ¶
Ping the programmer to see if it is alive. Also check if the version of the programmer protocol match the uploader
type FlasherError ¶
type FlasherError struct {
// contains filtered or unexported fields
}
func (FlasherError) Error ¶
func (e FlasherError) Error() string