Macros | Functions | Variables
Tone.cpp File Reference
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "Arduino.h"
#include "pins_arduino.h"
Include dependency graph for Tone.cpp:

Go to the source code of this file.

Macros

#define AVAILABLE_TONE_PINS   1
 
#define USE_TIMER2
 

Functions

void disableTimer (uint8_t _timer)
 
 ISR (TIMER2_COMPA_vect)
 
void noTone (uint8_t _pin)
 
void tone (uint8_t _pin, unsigned int frequency, unsigned long duration)
 
static int8_t toneBegin (uint8_t _pin)
 

Variables

volatile uint8_t timer0_pin_mask
 
volatile uint8_t * timer0_pin_port
 
volatile long timer0_toggle_count
 
volatile uint8_t timer1_pin_mask
 
volatile uint8_t * timer1_pin_port
 
volatile long timer1_toggle_count
 
volatile uint8_t timer2_pin_mask
 
volatile uint8_t * timer2_pin_port
 
volatile long timer2_toggle_count
 
const uint8_t PROGMEM tone_pin_to_timer_PGM [] = { 2 }
 
static uint8_t tone_pins [AVAILABLE_TONE_PINS] = { 255 }
 

Macro Definition Documentation

#define AVAILABLE_TONE_PINS   1

Definition at line 117 of file Tone.cpp.

#define USE_TIMER2

Definition at line 118 of file Tone.cpp.

Function Documentation

void disableTimer ( uint8_t  _timer)

Definition at line 426 of file Tone.cpp.

ISR ( TIMER2_COMPA_vect  )

Definition at line 538 of file Tone.cpp.

void noTone ( uint8_t  _pin)

Definition at line 480 of file Tone.cpp.

void tone ( uint8_t  _pin,
unsigned int  frequency,
unsigned long  duration 
)

Definition at line 243 of file Tone.cpp.

static int8_t toneBegin ( uint8_t  _pin)
static

Definition at line 128 of file Tone.cpp.

Variable Documentation

volatile uint8_t timer0_pin_mask

Definition at line 62 of file Tone.cpp.

volatile uint8_t* timer0_pin_port

Definition at line 61 of file Tone.cpp.

volatile long timer0_toggle_count

Definition at line 60 of file Tone.cpp.

volatile uint8_t timer1_pin_mask

Definition at line 67 of file Tone.cpp.

volatile uint8_t* timer1_pin_port

Definition at line 66 of file Tone.cpp.

volatile long timer1_toggle_count

Definition at line 65 of file Tone.cpp.

volatile uint8_t timer2_pin_mask

Definition at line 70 of file Tone.cpp.

volatile uint8_t* timer2_pin_port

Definition at line 69 of file Tone.cpp.

volatile long timer2_toggle_count

Definition at line 68 of file Tone.cpp.

const uint8_t PROGMEM tone_pin_to_timer_PGM[] = { 2 }

Definition at line 121 of file Tone.cpp.

uint8_t tone_pins[AVAILABLE_TONE_PINS] = { 255 }
static

Definition at line 122 of file Tone.cpp.



arduino_daq
Author(s):
autogenerated on Mon Jun 10 2019 12:46:03