STM32 Target Support Library Component Reference

This chapter lists the blocks of the PLECS STM32 Target Support Library in alphabetical order.

Analog In

Output the measured voltage at an analog input channel, in continuous mode

Analog In (Triggered)

Output the measured voltage at an analog input channel, in single or triggered mode

Base Task Load

Provide the CPU load generated by the base task as a percentage of the base task period

CAN Port

Set up a CAN communication port

CAN Receive

Receive CAN messages

CAN Status

Provide the CAN bus status

CAN Transmit

Transmit CAN messages

Control Task Trigger

Specify the base sample time and trigger for the main control tasks

DAC

Generate an output voltage from the input signal

Digital In

Read a digital input

Digital Out

Set a digital output

Edge Counter

Count edge of a pulse train

External Sync

External synchronization port for HRTIM and PWM blocks

HRTIM Master

Synchronize multiple HRTIM timing units for frequency and/or phase variable PWM signals

HRTIM Timing Unit

Generate up to two independent PWM signals or a complementary PWM signal pair

Offline Inport

Create a target inport for offline simulation

Offline Outport

Create a target outport for offline simulation

Override Probe

Allow modifying input value during a PIL simulation

Peak Current Controller

Implement peak current control with ramp compensation

Powerstage Protection

Provide powerstage safety features

Pulse Capture

Time-stamp edges of a pulse train

PWM

Generate a complementary PWM signal pair

Quadrature Encoder Counter (QEP)

Counts edges generated by a quadrature encoder

Read Probe

Provide read access to signal during a PIL simulation

SinCos

Fast calculation of sine and cosine

SPI Master

Implement SPI Master connected to one or multiple slaves

SPI Slave

Implement SPI Slave

Timer

Generate trigger signals for ADC and model