Skip to main content

Total Phase Aardvark I2C exerciser for pymctp

Project description

pymctp-exerciser-aardvark

Total Phase Aardvark I2C exerciser support for pymctp.

This package provides an exerciser implementation for interfacing with Total Phase Aardvark I2C/SPI adapters to send and receive MCTP packets over I2C.

Installation

pip install pymctp-exerciser-aardvark

Requirements

  • pymctp >= 0.1.0
  • pyaardvark >= 0.7.1
  • Total Phase Aardvark I2C/SPI adapter hardware

Usage

from pymctp.exerciser import AardvarkI2CSocket

# List available Aardvark devices
AardvarkI2CSocket.list_devices()

# Open a connection
socket = AardvarkI2CSocket(
    port=0,  # Device port number
    addr=0x20,  # Target I2C address
    bitrate=100  # I2C bitrate in kHz
)

# Send/receive MCTP packets
from pymctp.layers.mctp import SmbusTransport

pkt = SmbusTransport(...)
socket.send(pkt)

response = socket.recv()

Auto-Registration

This package automatically registers itself with pymctp when installed. You can access it through the exerciser registry:

from pymctp.exerciser import get_exerciser

AardvarkSocket = get_exerciser('aardvark')

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymctp_exerciser_aardvark-0.2.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymctp_exerciser_aardvark-0.2.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pymctp_exerciser_aardvark-0.2.5.tar.gz.

File metadata

File hashes

Hashes for pymctp_exerciser_aardvark-0.2.5.tar.gz
Algorithm Hash digest
SHA256 6262918322b1029fe56c5fae6d46d679f99d2a1d330d2bb8e7d3e2eac784c215
MD5 db2036bb24547ebc4320b30667eca55e
BLAKE2b-256 507c41328660736d7c76f9a6212a791243f21b995f6a2ec40e2053e28431e36f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymctp_exerciser_aardvark-0.2.5.tar.gz:

Publisher: publish.yml on jls5177/pymctp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymctp_exerciser_aardvark-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pymctp_exerciser_aardvark-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6e83e40e716dea26744d74741d72141744beef88afad39dfdd62bc41453b9a
MD5 7e9442fe6cf638079ce4d6f11c84a279
BLAKE2b-256 e0a6fb085990ca9711dded8f0ba2e7c34bb410d05cfee4bf9aa4c842029f3498

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymctp_exerciser_aardvark-0.2.5-py3-none-any.whl:

Publisher: publish.yml on jls5177/pymctp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page