Skip to content

Struct timer_driver_api

ClassList > timer_driver_api

Driver API structure for timer devices. More...

  • #include <timer.h>

Public Attributes

Type Name
timer_api_config config
timer_api_get_count get_count
timer_api_start start
timer_api_stop stop

Detailed Description

This structure defines the interface that a timer driver must implement to integrate with the OwnTech timer subsystem.

  • config is the function used to configure the timer.
  • start starts the timer operation.
  • stop stops the timer operation.
  • get_count retrieves the current timer counter value.

This structure is registered as a Zephyr subsystem using the __subsystem keyword.

Public Attributes Documentation

variable config

timer_api_config timer_driver_api::config;

variable get_count

timer_api_get_count timer_driver_api::get_count;

variable start

timer_api_start timer_driver_api::start;

variable stop

timer_api_stop timer_driver_api::stop;


The documentation for this class was generated from the following file docs/core/zephyr/modules/owntech_timer_driver/zephyr/public_api/timer.h