ChibiOS  21.6.0
hal_gpt.h File Reference

GPT Driver macros and structures. More...

#include "hal_gpt_lld.h"

Go to the source code of this file.

Macros

#define gptChangeIntervalI(gptp, interval)
 Changes the interval of GPT peripheral. More...
 
#define gptGetIntervalX(gptp)   gpt_lld_get_interval(gptp)
 Returns the interval of GPT peripheral. More...
 
#define gptGetCounterX(gptp)   gpt_lld_get_counter(gptp)
 Returns the counter value of GPT peripheral. More...
 
#define _gpt_isr_invoke_cb(gptp)
 Common ISR code, GPT period event. More...
 

Typedefs

typedef struct GPTDriver GPTDriver
 Type of a structure representing a GPT driver. More...
 
typedef void(* gptcallback_t) (GPTDriver *gptp)
 GPT notification callback type. More...
 

Enumerations

enum  gptstate_t {
  GPT_UNINIT = 0, GPT_STOP = 1, GPT_READY = 2, GPT_CONTINUOUS = 3,
  GPT_ONESHOT = 4
}
 Driver state machine possible states. More...
 

Functions

void gptInit (void)
 GPT Driver initialization. More...
 
void gptObjectInit (GPTDriver *gptp)
 Initializes the standard part of a GPTDriver structure. More...
 
void gptStart (GPTDriver *gptp, const GPTConfig *config)
 Configures and activates the GPT peripheral. More...
 
void gptStop (GPTDriver *gptp)
 Deactivates the GPT peripheral. More...
 
void gptStartContinuous (GPTDriver *gptp, gptcnt_t interval)
 Starts the timer in continuous mode. More...
 
void gptStartContinuousI (GPTDriver *gptp, gptcnt_t interval)
 Starts the timer in continuous mode. More...
 
void gptChangeInterval (GPTDriver *gptp, gptcnt_t interval)
 Changes the interval of GPT peripheral. More...
 
void gptStartOneShot (GPTDriver *gptp, gptcnt_t interval)
 Starts the timer in one shot mode. More...
 
void gptStartOneShotI (GPTDriver *gptp, gptcnt_t interval)
 Starts the timer in one shot mode. More...
 
void gptStopTimer (GPTDriver *gptp)
 Stops the timer. More...
 
void gptStopTimerI (GPTDriver *gptp)
 Stops the timer. More...
 
void gptPolledDelay (GPTDriver *gptp, gptcnt_t interval)
 Starts the timer in one shot mode and waits for completion. More...
 

Detailed Description

GPT Driver macros and structures.

Definition in file hal_gpt.h.