Unit PXL.Boards.Types

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Basic types and components commonly used on microcontrollers and compact singleboard devices.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCustomADC Abstract ADC (Analog-to-Digital Converter) manager.
Class TCustomDataPort Abstract communication manager can be used for reading and writing data.
Class TCustomGPIO Abstract GPIO (General Purpose Input / Output) manager.
Class TCustomPortI2C Abstract I2C (Inter-Integrated Circuit) communication manager.
Class TCustomPortSPI Abstract SPI (Serial Peripheral Interface) communication manager.
Class TCustomPortUART Abstract UART (Universal Asynchronous Receiver / Transmitter) communication manager.
Class TCustomPWM Abstract PWM (Pulse-Width Modulation) manager.
Class TCustomSystemCore System core of the board, which provides high-performance utility functions for accurate timing and delays.

Types

TBitsPerWord = Cardinal;
TChipSelectMode = (...);
TMicroseconds = TTickCounter;
TMilliseconds = TTickCounter;
TParity = (...);
TPinChannel = TPinIdentifier;
TPinDrive = (...);
TPinIdentifier = Cardinal;
TPinMode = (...);
TPinValue = (...);
TSignalEdge = (...);
TSPIMode = Cardinal;
TStopBits = (...);
TTickCounter = UInt64 ;

Constants

DefaultSPIFrequency = 8000000;
DefaultUARTBaudRate = 115200;
MaxI2CTransferSize = 32 ;
MaxSPITransferSize = 4096 ;
PinDisabled = TPinIdentifier(-1);

Description

Types

TBitsPerWord = Cardinal;

Number of bits each data packet (or "word) occupies.

TChipSelectMode = (...);

Chip Select operation mode.

Values
  • Disabled: Chip Select pin shuld not be managed.
  • ActiveLow: Chip Select should be helf active low during operations. This is the default mode.
  • ActiveHigh: Chip Select should be helf active high during operations.
TMicroseconds = TTickCounter;
 
TMilliseconds = TTickCounter;
 
TParity = (...);

Parity bit type used for transceiving binary strings.

Values
  • None = 0: No parity bit.
  • Odd = 1: Odd parity bit.
  • Even = 2: Even parity bit.
TPinChannel = TPinIdentifier;

Generic channel number, which can actually represent a physical pin.

TPinDrive = (...);

Drive mode that is used in GPIO pins.

Values
  • None: Strong low and high or high-impedance (no pull-up or pull-down resistor).
  • PullUp: Resistive high, strong low (pull-up resistor).
  • PullDown: Resistive low, strong high (pull-down resistor).
TPinIdentifier = Cardinal;

Unique number that identifies each individual pin on the chip. The actual interpretation and meaning of this value may vary on different implementations.

TPinMode = (...);

I/O mode typically used in GPIO pins.

Values
  • Input = 0: Pin set for input / high impedance
  • Output = 1: Pin set for output
  • Unknown = 99: Pin set for alternate Pinfunction
TPinValue = (...);

Digital value of the pin.

Values
  • Low = 0: Low (0) or zero voltage.
  • High = 1: High (1) or full voltage.
TSignalEdge = (...);

Transition type of digital signal on a certain pin.

Values
  • None: Depending on implementation this value can mean either that transition is unknown, disabled or using both falling and raising edges.
  • Falling: Falling edge, where signal goes from high (1) to low (0).
  • Raising: Raising edge, where signal goes from low (0) to high (1).
TSPIMode = Cardinal;

SPI operation mode. The actual interpretation of this value depends on each platform and implementation.

TStopBits = (...);

Number of stop bits used for transceiving binary strings.

Values
  • One = 0: One stop bit.
  • OneDotFive = 1: One and "half" stop bits.
  • Two = 2: Two stop bits.
TTickCounter = UInt64 ;

Special unsigned integer that is used to represent ticks in microseconds.

Constants

DefaultSPIFrequency = 8000000;

Default frequency at which SPI controller operates.

DefaultUARTBaudRate = 115200;

Default baud rate at which UART controller operates.

MaxI2CTransferSize = 32 ;

Maximum number of bytes that can be reliably sent through I2C protocol in each read/write call.

MaxSPITransferSize = 4096 ;

Maximum number of bytes that can be reliably sent through SPI protocol in each read/write call.

PinDisabled = TPinIdentifier(-1);

Constant value indicating that the specified pin is not connected and should not be used.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.