Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ATmega328P Class Reference

#include <ATmega328P.h>

Inheritance diagram for ATmega328P:
Inheritance graph
[legend]
Collaboration diagram for ATmega328P:
Collaboration graph
[legend]

Public Member Functions

void timerEnablePwm ()
 Start PWM output. More...
 
void timerDisablePwm ()
 Turn off PWM output. More...
 
void timerEnableIntr ()
 Start periodic sampling routine. More...
 
void timerDisableIntr ()
 Turn off periodic interrupts. More...
 
void timerConfigHz (frequency_t val, dutycycle_t dutyCycle)
 Configure hardware PWM, but do not enable it. More...
 
void timerConfigNormal ()
 Disables the PWM configuration. More...
 
- Public Member Functions inherited from Board
virtual void writeLow ()
 
virtual void writeHigh ()
 
virtual void writeLow (pin_t pin)
 
virtual void writeHigh (pin_t pin)
 
void setPinMode (pin_t pin, PinMode mode)
 
bool readDigital (pin_t pin)
 
virtual pin_t getPwmPin () const
 
virtual void checkValidSendPin (pin_t pin __attribute__((unused)))
 
virtual void enableSampler (pin_t pin __attribute__((unused)))
 Start the periodic ISR sampler routine. More...
 
virtual void disableSampler ()
 Turn off sampler routine. More...
 
void enablePwm (pin_t pin, frequency_t frequency, dutycycle_t dutyCycle)
 Start PWM, making output active. More...
 
void disablePwm ()
 Turn off PWM. More...
 
void sendPwmMark (microseconds_t time)
 
virtual void timerReset ()
 TODO. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Board
static void delayMicroseconds (microseconds_t)
 Version of delayMicroseconds able to grok more than 16383 micros. More...
 
static BoardgetInstance ()
 
static constexpr pin_t defaultPwmPin ()
 
static constexpr bool hasHardwarePwm ()
 
static void debugPinHigh ()
 
static void debugPinLow ()
 
static void setupDebugPin ()
 
- Static Public Attributes inherited from Board
static const unsigned long microsPerTick = 50UL
 
static constexpr pin_t NO_PIN = 255U
 Constant indicating no or invalid pin. More...
 
static constexpr dutycycle_t defaultDutyCycle = 40
 Default duty cycle to use. More...
 
- Protected Member Functions inherited from Board
 Board ()
 
virtual void timerEnableIntr ()=0
 Start periodic sampling routine. More...
 
virtual void timerDisableIntr ()=0
 Turn off periodic interrupts. More...
 
virtual void timerConfigHz (frequency_t hz, dutycycle_t dutyCycle=defaultDutyCycle)=0
 Configure hardware PWM, but do not enable it. More...
 
virtual void timerConfigNormal ()=0
 Disables the PWM configuration. More...
 
virtual void timerEnablePwm ()=0
 Start PWM output. More...
 
virtual void timerDisablePwm ()=0
 Turn off PWM output. More...
 

Detailed Description

Definition at line 31 of file ATmega328P.h.

Member Function Documentation

◆ timerConfigHz()

void ATmega328P::timerConfigHz ( frequency_t  hz,
dutycycle_t  dutyCycle 
)
inlinevirtual

Configure hardware PWM, but do not enable it.

Implements Board.

Definition at line 92 of file ATmega328P.h.

◆ timerConfigNormal()

void ATmega328P::timerConfigNormal ( )
inlinevirtual

Disables the PWM configuration.

Implements Board.

Definition at line 100 of file ATmega328P.h.

◆ timerDisableIntr()

void ATmega328P::timerDisableIntr ( )
inlinevirtual

Turn off periodic interrupts.

Implements Board.

Definition at line 86 of file ATmega328P.h.

◆ timerDisablePwm()

void ATmega328P::timerDisablePwm ( )
inlinevirtual

Turn off PWM output.

Implements Board.

Definition at line 78 of file ATmega328P.h.

◆ timerEnableIntr()

void ATmega328P::timerEnableIntr ( )
inlinevirtual

Start periodic sampling routine.

Implements Board.

Definition at line 82 of file ATmega328P.h.

◆ timerEnablePwm()

void ATmega328P::timerEnablePwm ( )
inlinevirtual

Start PWM output.

Implements Board.

Definition at line 74 of file ATmega328P.h.


The documentation for this class was generated from the following file: