recnplay2
2.1.0.0
|
This file contains API for Rec N Play 2 Click Driver. More...
#include "drv_digital_out.h"
#include "drv_digital_in.h"
Go to the source code of this file.
Data Structures | |
struct | recnplay2_t |
Rec N Play 2 Click context object. More... | |
struct | recnplay2_cfg_t |
Rec N Play 2 Click configuration object. More... | |
Macros | |
#define | RECNPLAY2_DURATION_24S 24000 |
Rec N Play 2 description setting. More... | |
#define | RECNPLAY2_PIN_STATE_LOW 0x00 |
Rec N Play 2 Pin state setting. More... | |
#define | RECNPLAY2_PIN_STATE_HIGH 0x01 |
#define | RECNPLAY2_MAP_MIKROBUS(cfg, mikrobus) |
MikroBUS pin mapping. More... | |
Enumerations | |
enum | recnplay2_return_value_t { RECNPLAY2_OK = 0, RECNPLAY2_ERROR = -1 } |
Rec N Play 2 Click return value data. More... | |
Functions | |
void | recnplay2_cfg_setup (recnplay2_cfg_t *cfg) |
Rec N Play 2 configuration object setup function. More... | |
err_t | recnplay2_init (recnplay2_t *ctx, recnplay2_cfg_t *cfg) |
Rec N Play 2 initialization function. More... | |
void | recnplay2_default_cfg (recnplay2_t *ctx) |
Rec N Play 2 default configuration function. More... | |
void | recnplay2_set_rec_pin (recnplay2_t *ctx, uint8_t pin_state) |
Rec N Play 2 REC pin setting function. More... | |
void | recnplay2_set_pe_pin (recnplay2_t *ctx, uint8_t pin_state) |
Rec N Play 2 Pe pin setting function. More... | |
void | recnplay2_set_pl_pin (recnplay2_t *ctx, uint8_t pin_state) |
Rec N Play 2 PL pin setting function. More... | |
err_t | recnplay2_record_sound (recnplay2_t *ctx, uint16_t rec_len) |
Rec N Play 2 record sound function. More... | |
err_t | recnplay2_play_sound (recnplay2_t *ctx, uint16_t play_len) |
Rec N Play 2 play recorded sounds function. More... | |
This file contains API for Rec N Play 2 Click Driver.