recnplay 2.0.0.0
main.c File Reference

RecNPlay Click example. More...

#include "board.h"
#include "log.h"
#include "recnplay.h"

Functions

void wait_cmd_fin (void)
 
void wait_ready (void)
 
void wait_power_up (void)
 
void time_record (uint32_t seconds_time)
 
void set_volume (uint8_t volume_sel)
 
void application_init (void)
 
void application_task (void)
 
int main (void)
 

Detailed Description

RecNPlay Click example.

Description

This application demonstrates the processof recording a message and playing it back.

The demo application is composed of two sections :

Application Init

Initializes SPI interface in proper mode and performs all the necessary commands to put the device in proper working mode (chip reset, chip power up, chip erasing, clock configuration).

Application Task

Performs the chip configuration for recording message via microphone, then records a message for 8 seconds to specified memory location. After that, it reads the recorded message address with message length and then plays the recorded message. When playback is done it erases the recorded message from memory. Afterwards, it repeats all the operations every 10 seconds.

note: The ISD3900 must be properly configured to work in record mode every time when user wants to record a message. When user wants to play a recorded message, then ISD3900 must be properly configured, but now to work in play mode.

Author
MikroE Team

Function Documentation

◆ application_init()

void application_init ( void )

Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG

Note
If USB_UART_RX and USB_UART_TX are defined as HAL_PIN_NC, you will need to define them manually for log to work. See LOG_MAP_USB_UART macro definition for detailed explanation.

◆ application_task()

void application_task ( void )

◆ main()

int main ( void )

◆ set_volume()

void set_volume ( uint8_t volume_sel)

◆ time_record()

void time_record ( uint32_t seconds_time)

◆ wait_cmd_fin()

void wait_cmd_fin ( void )

◆ wait_power_up()

void wait_power_up ( void )

◆ wait_ready()

void wait_ready ( void )