Pwm

PWM interface

More...

Entities

Simple types

Pwm_Index

Subprograms

Configure_Timers
SetRate

Description

This package gives an interface to the PWM hardware

Pwm_Index [source]

15 type Pwm_Index is (Left, Right);

PWM Left Motor or PWM Right Motor

Left

left motor

Right

right motor

Configure_Timers [source]

18 procedure Configure_Timers;

Configure the PWM timers

SetRate [source]

23 procedure SetRate (Index : Pwm_Index;
24 Value : Word);

Set the PWM rate

Index of type Pwm.Pwm_Index

left or right motor

Value of type Types.Word

the PWM value to set