Help us shape the future of Go! Take the 2026 Go Developer Survey

hardwaretools

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type I2CTool

type I2CTool struct{}

I2CTool provides I2C bus interaction for reading sensors and controlling peripherals.

func NewI2CTool

func NewI2CTool() *I2CTool

func (*I2CTool) Description

func (t *I2CTool) Description() string

func (*I2CTool) Execute

func (t *I2CTool) Execute(ctx context.Context, args map[string]any) *ToolResult

func (*I2CTool) Name

func (t *I2CTool) Name() string

func (*I2CTool) Parameters

func (t *I2CTool) Parameters() map[string]any

type SPITool

type SPITool struct{}

SPITool provides SPI bus interaction for high-speed peripheral communication.

func NewSPITool

func NewSPITool() *SPITool

func (*SPITool) Description

func (t *SPITool) Description() string

func (*SPITool) Execute

func (t *SPITool) Execute(ctx context.Context, args map[string]any) *ToolResult

func (*SPITool) Name

func (t *SPITool) Name() string

func (*SPITool) Parameters

func (t *SPITool) Parameters() map[string]any

type SerialTool added in v0.2.8

type SerialTool struct{}

func NewSerialTool added in v0.2.8

func NewSerialTool() *SerialTool

func (*SerialTool) Description added in v0.2.8

func (t *SerialTool) Description() string

func (*SerialTool) Execute added in v0.2.8

func (t *SerialTool) Execute(ctx context.Context, args map[string]any) *ToolResult

func (*SerialTool) Name added in v0.2.8

func (t *SerialTool) Name() string

func (*SerialTool) Parameters added in v0.2.8

func (t *SerialTool) Parameters() map[string]any

type ToolResult

type ToolResult = toolshared.ToolResult

func ErrorResult

func ErrorResult(message string) *ToolResult

func SilentResult

func SilentResult(forLLM string) *ToolResult

Jump to

Keyboard shortcuts

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