smartmic 2.0.0.0
Smart Mic Registers Settings

Settings for registers of Smart Mic Click driver. More...

Macros

#define SMARTMIC_VQ_CMD_VS_PROCESSING_MODE   0x5003
 Smart Mic API set algo param commands.
 
#define SMARTMIC_VQ_CMD_OEM_SENSITIVITY   0x5008
 
#define SMARTMIC_VQ_CMD_UTK_SENSITIVITY   0x5009
 
#define SMARTMIC_VQ_CMD_VID_SENSITIVITY   0x500D
 
#define SMARTMIC_VQ_CMD_RESET   0x500E
 
#define SMARTMIC_VS_PROCESSING_MODE_KW   0x0000
 Smart Mic API set algo param settings.
 
#define SMARTMIC_OEM_SENSITIVITY_5   0x0005
 
#define SMARTMIC_UTK_SENSITIVITY_0   0x0000
 
#define SMARTMIC_VID_SENSITIVITY_2   0x0002
 
#define SMARTMIC_RESET   0x0001
 
#define SMARTMIC_SYNC_BYTE   0xB7
 Smart Mic API settings.
 
#define SMARTMIC_BOOT_BYTE   0x01
 
#define SMARTMIC_SAMPLE_RATE_16K   0x0001
 
#define SMARTMIC_FRAME_SIZE_16MS   0x0010
 
#define SMARTMIC_BUFF_DATA_FORMAT_16BIT   0x0002
 
#define SMARTMIC_ROUTE_6   0x0006
 
#define SMARTMIC_DIGITAL_GAIN_20   0x0C14
 
#define SMARTMIC_END_POINT_ID   0x0C00
 
#define SMARTMIC_LOW_POWER_MODE_RT6   0x0002
 
#define SMARTMIC_IA611_INT_RISING_EDGE   0x04
 
#define SMARTMIC_IA611_INT_FALLING_EDGE   0x03
 
#define SMARTMIC_IA611_INT_LOW_LEVEL   0x01
 
#define SMARTMIC_WDB_SIZE_NO_HEADER   508
 
#define SMARTMIC_WDB_SIZE   512
 
#define SMARTMIC_UART_EVENT_HEADER   0xFE
 
#define SMARTMIC_NO_KWD_DETECTED   0
 
#define SMARTMIC_OEM1_KWD_DETECTED   1
 
#define SMARTMIC_OEM2_KWD_DETECTED   2
 
#define SMARTMIC_OEM3_KWD_DETECTED   3
 
#define SMARTMIC_OEM4_KWD_DETECTED   4
 
#define SMARTMIC_DRIVER_UART   0
 Smart Mic Click driver selector.
 
#define SMARTMIC_DRIVER_SPI   1
 
#define SMARTMIC_DRIVER_I2C   2
 
#define SMARTMIC_DRIVER_SELECTOR   SMARTMIC_DRIVER_I2C
 
#define SMARTMIC_SYS_CFG_6SEC_TO   0
 Smart Mic Click system config selector.
 
#define SMARTMIC_SYS_CFG_6SEC_TO_UTK   1
 
#define SMARTMIC_SYS_CFG_6SEC_TO_VID   2
 
#define SMARTMIC_SYS_CFG_SELECTOR   SMARTMIC_SYS_CFG_6SEC_TO
 
#define SMARTMIC_DEVICE_ADDRESS_0   0x3E
 Smart Mic device address setting.
 
#define SMARTMIC_DEVICE_ADDRESS_1   0x3F
 
#define SMARTMIC_DEVICE_ADDRESS_2   0x38
 
#define SMARTMIC_DEVICE_ADDRESS_3   0x39
 
#define SMARTMIC_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SMARTMIC_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 
#define DRV_BUFFER_SIZE   256
 Smart Mic driver buffer size.
 

Detailed Description

Settings for registers of Smart Mic Click driver.

Macro Definition Documentation

◆ DRV_BUFFER_SIZE

#define DRV_BUFFER_SIZE   256

Smart Mic driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.

◆ SMARTMIC_BOOT_BYTE

#define SMARTMIC_BOOT_BYTE   0x01

◆ SMARTMIC_BUFF_DATA_FORMAT_16BIT

#define SMARTMIC_BUFF_DATA_FORMAT_16BIT   0x0002

◆ SMARTMIC_DEVICE_ADDRESS_0

#define SMARTMIC_DEVICE_ADDRESS_0   0x3E

Smart Mic device address setting.

Specified setting for device slave address selection of Smart Mic Click driver.

◆ SMARTMIC_DEVICE_ADDRESS_1

#define SMARTMIC_DEVICE_ADDRESS_1   0x3F

◆ SMARTMIC_DEVICE_ADDRESS_2

#define SMARTMIC_DEVICE_ADDRESS_2   0x38

◆ SMARTMIC_DEVICE_ADDRESS_3

#define SMARTMIC_DEVICE_ADDRESS_3   0x39

◆ SMARTMIC_DIGITAL_GAIN_20

#define SMARTMIC_DIGITAL_GAIN_20   0x0C14

◆ SMARTMIC_DRIVER_I2C

#define SMARTMIC_DRIVER_I2C   2

◆ SMARTMIC_DRIVER_SELECTOR

#define SMARTMIC_DRIVER_SELECTOR   SMARTMIC_DRIVER_I2C

◆ SMARTMIC_DRIVER_SPI

#define SMARTMIC_DRIVER_SPI   1

◆ SMARTMIC_DRIVER_UART

#define SMARTMIC_DRIVER_UART   0

Smart Mic Click driver selector.

Selects target driver interface of Smart Mic Click driver.

◆ SMARTMIC_END_POINT_ID

#define SMARTMIC_END_POINT_ID   0x0C00

◆ SMARTMIC_FRAME_SIZE_16MS

#define SMARTMIC_FRAME_SIZE_16MS   0x0010

◆ SMARTMIC_IA611_INT_FALLING_EDGE

#define SMARTMIC_IA611_INT_FALLING_EDGE   0x03

◆ SMARTMIC_IA611_INT_LOW_LEVEL

#define SMARTMIC_IA611_INT_LOW_LEVEL   0x01

◆ SMARTMIC_IA611_INT_RISING_EDGE

#define SMARTMIC_IA611_INT_RISING_EDGE   0x04

◆ SMARTMIC_LOW_POWER_MODE_RT6

#define SMARTMIC_LOW_POWER_MODE_RT6   0x0002

◆ SMARTMIC_NO_KWD_DETECTED

#define SMARTMIC_NO_KWD_DETECTED   0

◆ SMARTMIC_OEM1_KWD_DETECTED

#define SMARTMIC_OEM1_KWD_DETECTED   1

◆ SMARTMIC_OEM2_KWD_DETECTED

#define SMARTMIC_OEM2_KWD_DETECTED   2

◆ SMARTMIC_OEM3_KWD_DETECTED

#define SMARTMIC_OEM3_KWD_DETECTED   3

◆ SMARTMIC_OEM4_KWD_DETECTED

#define SMARTMIC_OEM4_KWD_DETECTED   4

◆ SMARTMIC_OEM_SENSITIVITY_5

#define SMARTMIC_OEM_SENSITIVITY_5   0x0005

◆ SMARTMIC_RESET

#define SMARTMIC_RESET   0x0001

◆ SMARTMIC_ROUTE_6

#define SMARTMIC_ROUTE_6   0x0006

◆ SMARTMIC_SAMPLE_RATE_16K

#define SMARTMIC_SAMPLE_RATE_16K   0x0001

◆ SMARTMIC_SET_DATA_SAMPLE_EDGE

#define SMARTMIC_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with smartmic_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ SMARTMIC_SET_DATA_SAMPLE_MIDDLE

#define SMARTMIC_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SMARTMIC_SYNC_BYTE

#define SMARTMIC_SYNC_BYTE   0xB7

Smart Mic API settings.

Specified API settings of Smart Mic Click driver.

◆ SMARTMIC_SYS_CFG_6SEC_TO

#define SMARTMIC_SYS_CFG_6SEC_TO   0

Smart Mic Click system config selector.

Selects system config of Smart Mic Click driver.

◆ SMARTMIC_SYS_CFG_6SEC_TO_UTK

#define SMARTMIC_SYS_CFG_6SEC_TO_UTK   1

◆ SMARTMIC_SYS_CFG_6SEC_TO_VID

#define SMARTMIC_SYS_CFG_6SEC_TO_VID   2

◆ SMARTMIC_SYS_CFG_SELECTOR

#define SMARTMIC_SYS_CFG_SELECTOR   SMARTMIC_SYS_CFG_6SEC_TO

◆ SMARTMIC_UART_EVENT_HEADER

#define SMARTMIC_UART_EVENT_HEADER   0xFE

◆ SMARTMIC_UTK_SENSITIVITY_0

#define SMARTMIC_UTK_SENSITIVITY_0   0x0000

◆ SMARTMIC_VID_SENSITIVITY_2

#define SMARTMIC_VID_SENSITIVITY_2   0x0002

◆ SMARTMIC_VQ_CMD_OEM_SENSITIVITY

#define SMARTMIC_VQ_CMD_OEM_SENSITIVITY   0x5008

◆ SMARTMIC_VQ_CMD_RESET

#define SMARTMIC_VQ_CMD_RESET   0x500E

◆ SMARTMIC_VQ_CMD_UTK_SENSITIVITY

#define SMARTMIC_VQ_CMD_UTK_SENSITIVITY   0x5009

◆ SMARTMIC_VQ_CMD_VID_SENSITIVITY

#define SMARTMIC_VQ_CMD_VID_SENSITIVITY   0x500D

◆ SMARTMIC_VQ_CMD_VS_PROCESSING_MODE

#define SMARTMIC_VQ_CMD_VS_PROCESSING_MODE   0x5003

Smart Mic API set algo param commands.

Specified API set algo param commands of Smart Mic Click driver.

◆ SMARTMIC_VS_PROCESSING_MODE_KW

#define SMARTMIC_VS_PROCESSING_MODE_KW   0x0000

Smart Mic API set algo param settings.

Specified API set algo param settings of Smart Mic Click driver.

◆ SMARTMIC_WDB_SIZE

#define SMARTMIC_WDB_SIZE   512

◆ SMARTMIC_WDB_SIZE_NO_HEADER

#define SMARTMIC_WDB_SIZE_NO_HEADER   508