jlink

package module
v0.0.0-...-5cc1ef2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

介绍

go wrap for jlink dll

软件架构

软件架构说明

安装教程
  1. xxxx
  2. xxxx
  3. xxxx
使用说明
  1. xxxx
  2. xxxx
  3. xxxx
参与贡献
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request
特技
  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. Gitee 官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
  4. GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
  5. Gitee 官方提供的使用手册 https://gitee.com/help
  6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/

Documentation

Index

Constants

View Source
const (
	JKCMD_GETID = 0x0E01
	JKCMD_PARAM = 0x0D02
	JKCMD_ERASE = 0x0C03
	JKCMD_READ  = 0x0B04
	JKCMD_PROG  = 0x0A05
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Jlink struct {
	// contains filtered or unexported fields
}
func TryNewJlink() (*Jlink, error)

func (*Jlink) Close

func (jk *Jlink) Close()

func (*Jlink) Connect

func (jk *Jlink) Connect(spd uint32) error

func (*Jlink) GetDevice

func (jk *Jlink) GetDevice() uint32

func (*Jlink) GetRegName

func (jk *Jlink) GetRegName(tidx uint32) string

func (*Jlink) GetVersion

func (jk *Jlink) GetVersion() uint32

func (*Jlink) GoIntDis

func (jk *Jlink) GoIntDis()

func (*Jlink) Halt

func (jk *Jlink) Halt() int

func (*Jlink) Open

func (jk *Jlink) Open() error

func (*Jlink) ReadDCC

func (jk *Jlink) ReadDCC(tlen uint32, tms uint32) ([]byte, error)

tlen: bytes count; tms: timeout, milliSecond

func (*Jlink) ReadMem

func (jk *Jlink) ReadMem(addr uint32, tlen uint32) []byte

func (*Jlink) ReadReg

func (jk *Jlink) ReadReg(tidx uint32) uint32

func (*Jlink) Step

func (jk *Jlink) Step()

func (*Jlink) WriteDCC

func (jk *Jlink) WriteDCC(data []byte, tms uint32) error

data: wirte to DCC channel; tms: timeout, milliSecond

func (*Jlink) WriteMem

func (jk *Jlink) WriteMem(addr uint32, data []byte)

func (*Jlink) WriteReg

func (jk *Jlink) WriteReg(tidx uint32, data uint32)

type Sflash

type Sflash struct {
	// contains filtered or unexported fields
}

func NewFlash

func NewFlash(jk *Jlink) (*Sflash, error)

func (*Sflash) ReadAt

func (sfh *Sflash) ReadAt(p []byte, off int64) (n int, err error)

func (*Sflash) WriteAt

func (sfh *Sflash) WriteAt(p []byte, off int64) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL