Documentation ¶
Overview ¶
Copyright (c) 2014-2019 Cesanta Software Limited All rights reserved
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
View Source
const ( DPIDR DPReg = 0x00 DPCTRLSTAT = 0x04 DPSELECT = 0x08 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DPClient ¶
type DPClient interface { Init(ctx context.Context) error GetIDR(ctx context.Context) (DPIDRValue, error) DbgReset(ctx context.Context) error SetDbgPower(ctx context.Context, dbg, sys bool) error ReadDPReg(ctx context.Context, reg DPReg) (uint32, error) WriteDPReg(ctx context.Context, reg DPReg, value uint32) error ReadAPReg(ctx context.Context, apSel, apReg uint8) (uint32, error) ReadAPRegMulti(ctx context.Context, apSel, apReg uint8, length int) ([]uint32, error) WriteAPReg(ctx context.Context, apSel, apReg uint8, value uint32) error WriteAPRegMulti(ctx context.Context, apSel, apReg uint8, values []uint32) error }
func NewDPClient ¶
type DPDesigner ¶
type DPDesigner uint16
func (DPDesigner) String ¶
func (v DPDesigner) String() string
type DPIDRValue ¶
type DPIDRValue uint32
func (DPIDRValue) Designer ¶
func (v DPIDRValue) Designer() DPDesigner
func (DPIDRValue) Minimal ¶
func (v DPIDRValue) Minimal() bool
func (DPIDRValue) PartNumber ¶
func (v DPIDRValue) PartNumber() bool
func (DPIDRValue) Revision ¶
func (v DPIDRValue) Revision() uint8
func (DPIDRValue) Version ¶
func (v DPIDRValue) Version() uint8
Click to show internal directories.
Click to hide internal directories.