hardwaretools

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 9 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 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