buzz 2.0.0.0
|
This file contains API for BUZZ Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_pwm.h"
Go to the source code of this file.
Data Structures | |
struct | buzz_t |
BUZZ Click driver selector. More... | |
struct | buzz_cfg_t |
BUZZ Click configuration object. More... | |
Macros | |
#define | BUZZ_DEF_FREQ 5000 |
BUZZ default PWM frequency. | |
#define | BUZZ_NOTE_C2 65 |
#define | BUZZ_NOTE_Db2 69 |
#define | BUZZ_NOTE_D2 73 |
#define | BUZZ_NOTE_Eb2 78 |
#define | BUZZ_NOTE_E2 82 |
#define | BUZZ_NOTE_F2 87 |
#define | BUZZ_NOTE_Gb2 93 |
#define | BUZZ_NOTE_G2 98 |
#define | BUZZ_NOTE_Ab2 104 |
#define | BUZZ_NOTE_A2 110 |
#define | BUZZ_NOTE_Bb2 117 |
#define | BUZZ_NOTE_B2 123 |
#define | BUZZ_NOTE_C3 131 |
#define | BUZZ_NOTE_Db3 139 |
#define | BUZZ_NOTE_D3 147 |
#define | BUZZ_NOTE_Eb3 156 |
#define | BUZZ_NOTE_E3 165 |
#define | BUZZ_NOTE_F3 175 |
#define | BUZZ_NOTE_Gb3 185 |
#define | BUZZ_NOTE_G3 196 |
#define | BUZZ_NOTE_Ab3 208 |
#define | BUZZ_NOTE_A3 220 |
#define | BUZZ_NOTE_AS3 233 |
#define | BUZZ_NOTE_B3 247 |
#define | BUZZ_NOTE_C4 262 |
#define | BUZZ_NOTE_Db4 277 |
#define | BUZZ_NOTE_D4 294 |
#define | BUZZ_NOTE_Eb4 311 |
#define | BUZZ_NOTE_E4 330 |
#define | BUZZ_NOTE_F4 349 |
#define | BUZZ_NOTE_Gb4 370 |
#define | BUZZ_NOTE_G4 392 |
#define | BUZZ_NOTE_Ab4 415 |
#define | BUZZ_NOTE_A4 440 |
#define | BUZZ_NOTE_Bb4 466 |
#define | BUZZ_NOTE_B4 494 |
#define | BUZZ_NOTE_C5 523 |
#define | BUZZ_NOTE_Db5 554 |
#define | BUZZ_NOTE_D5 587 |
#define | BUZZ_NOTE_Eb5 622 |
#define | BUZZ_NOTE_E5 659 |
#define | BUZZ_NOTE_F5 698 |
#define | BUZZ_NOTE_Gb5 740 |
#define | BUZZ_NOTE_G5 784 |
#define | BUZZ_NOTE_Ab5 831 |
#define | BUZZ_NOTE_A5 880 |
#define | BUZZ_NOTE_Bb5 932 |
#define | BUZZ_NOTE_B5 988 |
#define | BUZZ_NOTE_C6 1047 |
#define | BUZZ_NOTE_Db6 1109 |
#define | BUZZ_NOTE_D6 1175 |
#define | BUZZ_NOTE_Eb6 1245 |
#define | BUZZ_NOTE_E6 1319 |
#define | BUZZ_NOTE_F6 1397 |
#define | BUZZ_NOTE_Gb6 1480 |
#define | BUZZ_NOTE_G6 1568 |
#define | BUZZ_NOTE_Ab6 1661 |
#define | BUZZ_NOTE_A6 1760 |
#define | BUZZ_NOTE_Bb6 1865 |
#define | BUZZ_NOTE_B6 1976 |
#define | BUZZ_NOTE_C7 2093 |
#define | BUZZ_NOTE_Db7 2217 |
#define | BUZZ_NOTE_D7 2349 |
#define | BUZZ_NOTE_Eb7 2489 |
#define | BUZZ_NOTE_E7 2637 |
#define | BUZZ_NOTE_F7 2794 |
#define | BUZZ_NOTE_Gb7 2960 |
#define | BUZZ_NOTE_G7 3136 |
#define | BUZZ_NOTE_Ab7 3322 |
#define | BUZZ_NOTE_A7 3520 |
#define | BUZZ_NOTE_Bb7 3729 |
#define | BUZZ_NOTE_B7 3951 |
#define | BUZZ_NOTE_C8 4186 |
#define | BUZZ_NOTE_Db8 4435 |
#define | BUZZ_NOTE_D8 4699 |
#define | BUZZ_NOTE_Eb8 4978 |
#define | BUZZ_MAP_MIKROBUS(cfg, mikrobus) cfg.pwm = MIKROBUS( mikrobus, MIKROBUS_PWM ) |
MikroBUS pin mapping. | |
Enumerations | |
enum | buzz_return_value_t { BUZZ_OK = 0 , BUZZ_ERROR = -1 } |
BUZZ Click return value data. More... | |
Functions | |
void | buzz_cfg_setup (buzz_cfg_t *cfg) |
BUZZ configuration object setup function. | |
err_t | buzz_init (buzz_t *ctx, buzz_cfg_t *cfg) |
BUZZ initialization function. | |
err_t | buzz_set_duty_cycle (buzz_t *ctx, float duty_cycle) |
BUZZ sets PWM duty cycle. | |
err_t | buzz_pwm_stop (buzz_t *ctx) |
BUZZ stop PWM module. | |
err_t | buzz_pwm_start (buzz_t *ctx) |
BUZZ start PWM module. | |
void | buzz_play_sound (buzz_t *ctx, uint16_t freq, uint16_t level, uint16_t duration) |
BUZZ Play sound function. | |
This file contains API for BUZZ Click Driver.
enum buzz_return_value_t |