system

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package system, when imported, performs the default configuration of the Teensy 4.x board.

The board is configured to run with 528 MHz system clock. The USB interface is configured to provide two bidirectional communication channels with the host visible as two CDC ACM serial ports. The first one is used as the system console, the second one remains free for any use (see the USBIO function for more information).

All packages in the board directory imports this package implicitly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func USBIO

func USBIO() (d *usb.Device, outRx, inTx int8, statInt uint8)

USBIO returns the USB device and two logical endpoint numbers configured to be used as one bidirectional or two unidirectional communication channels. You can use them directly for raw USB communication, or they can be passed (along with statInt) to the usbserial.NewDriver function to obtain an emulated serial port.

On the host side, this bidirectional communication interface is visible as the second CDC ACM serial port. Nevertheless, thanks to libraries like libusb it can be used in raw mode to implement any required communication protocol.

Types

This section is empty.

Jump to

Keyboard shortcuts

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