hardwaretools

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type SerialTool struct{}

func NewSerialTool

func NewSerialTool() *SerialTool

func (*SerialTool) Description

func (t *SerialTool) Description() string

func (*SerialTool) Execute

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

func (*SerialTool) Name

func (t *SerialTool) Name() string

func (*SerialTool) Parameters

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