Skip to content

Class TimerHAL

ClassList > TimerHAL

Handles timer 4 for the SPIN board. More...

  • #include <TimerHAL.h>

Public Functions

Type Name
uint32_t getIncrementalEncoderValue (timernumber_t timer_number)
Gets the encoder step value.
void startLogIncrementalEncoder (timernumber_t timer_number)
Launches the timer4 which is adapted for reading an encoder.

Detailed Description

Note:

Use this element to initialize timer 4 and use it with an incremental encoder

Public Functions Documentation

function getIncrementalEncoderValue

Gets the encoder step value.

uint32_t TimerHAL::getIncrementalEncoderValue (
    timernumber_t timer_number
) 

Returns:

An uint32 value of the counter which corresponds to the step of the system.


function startLogIncrementalEncoder

Launches the timer4 which is adapted for reading an encoder.

void TimerHAL::startLogIncrementalEncoder (
    timernumber_t timer_number
) 



The documentation for this class was generated from the following file docs/core/zephyr/modules/owntech_spin_api/zephyr/src/TimerHAL.h