smartmic
2.0.0.0
|
This file contains API for Smart Mic Click Driver. More...
#include "mikrosdk_version.h"
#include "drv_digital_out.h"
#include "drv_digital_in.h"
#include "drv_uart.h"
#include "drv_i2c_master.h"
#include "drv_spi_master.h"
#include "spi_specifics.h"
Go to the source code of this file.
Data Structures | |
struct | smartmic_s |
Smart Mic Click context object. More... | |
struct | smartmic_cfg_t |
Smart Mic Click configuration object. More... | |
Typedefs | |
typedef struct smartmic_s | smartmic_t |
Smart Mic Click context object. More... | |
Enumerations | |
enum | smartmic_return_value_t { SMARTMIC_OK = 0, SMARTMIC_ERROR = -1, SMARTMIC_FIRMWARE_OK = 2 } |
Smart Mic Click return value data. More... | |
Functions | |
void | smartmic_cfg_setup (smartmic_cfg_t *cfg) |
Smart Mic configuration object setup function. More... | |
err_t | smartmic_init (smartmic_t *ctx, smartmic_cfg_t *cfg) |
Smart Mic initialization function. More... | |
err_t | smartmic_default_cfg (smartmic_t *ctx) |
Smart Mic default configuration function. More... | |
err_t | smartmic_write_data (smartmic_t *ctx, uint8_t *data_in, uint16_t len) |
Smart Mic write data function. More... | |
err_t | smartmic_read_data (smartmic_t *ctx, uint8_t *data_out, uint16_t len) |
Smart Mic read data function. More... | |
err_t | smartmic_send_command (smartmic_t *ctx, uint16_t cmd, uint16_t data_in, uint16_t *response) |
Smart Mic send command function. More... | |
err_t | smartmic_download_bin (smartmic_t *ctx, uint8_t *data_in, uint32_t len) |
Smart Mic download bin function. More... | |
err_t | smartmic_download_config (smartmic_t *ctx) |
Smart Mic download config function. More... | |
err_t | smartmic_download_firmware (smartmic_t *ctx) |
Smart Mic download firmware function. More... | |
err_t | smartmic_download_keyword (smartmic_t *ctx, uint16_t *data_in, uint16_t len) |
Smart Mic download keyword function. More... | |
err_t | smartmic_voice_make (smartmic_t *ctx) |
Smart Mic voice make function. More... | |
err_t | smartmic_wait_keyword (smartmic_t *ctx) |
Smart Mic wait keyword function. More... | |
void | smartmic_enable_device (smartmic_t *ctx) |
Smart Mic enable device function. More... | |
void | smartmic_disable_device (smartmic_t *ctx) |
Smart Mic disable device function. More... | |
uint8_t | smartmic_get_irq_pin (smartmic_t *ctx) |
Smart Mic get irq pin function. More... | |
This file contains API for Smart Mic Click Driver.
typedef struct smartmic_s smartmic_t |
Smart Mic Click context object.
Context object definition of Smart Mic Click driver.