Functions | Variables
respeaker-rpi0/porcupine_demo_mic.c File Reference
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <alsa/asoundlib.h>
#include <dlfcn.h>
#include <wiringPi.h>
#include <wiringPiSPI.h>
#include "pv_porcupine.h"
Include dependency graph for respeaker-rpi0/porcupine_demo_mic.c:

Go to the source code of this file.

Functions

void interrupt_handler (int _)
 
int main (int argc, char *argv[])
 
static void set_color (const uint8_t rgb[3])
 

Variables

static const uint8_t BLUE_RGB [3] = {0, 0, 255}
 
static const uint8_t GREEN_RGB [3] = {0, 255, 0}
 
static volatile bool is_interrupted = false
 
static const uint8_t OFF_RGB [3] = {0, 0, 0}
 
static const uint8_t ORANGE_RGB [3] = {255, 128, 0}
 
static const uint8_t PINK_RGB [3] = {255, 51, 153}
 
static const uint8_t PURPLE_RGB [3] = {128, 0, 128}
 
static const uint8_t RED_RGB [3] = {255, 0, 0}
 
static const uint8_t WHITE_RGB [3] = {255, 255, 255}
 
static const uint8_t YELLOW_RGB [3] = {255, 255, 51}
 

Function Documentation

◆ interrupt_handler()

void interrupt_handler ( int  _)

Definition at line 58 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 63 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ set_color()

static void set_color ( const uint8_t  rgb[3])
static

Definition at line 36 of file respeaker-rpi0/porcupine_demo_mic.c.

Variable Documentation

◆ BLUE_RGB

const uint8_t BLUE_RGB[3] = {0, 0, 255}
static

Definition at line 25 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ GREEN_RGB

const uint8_t GREEN_RGB[3] = {0, 255, 0}
static

Definition at line 26 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ is_interrupted

volatile bool is_interrupted = false
static

Definition at line 34 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ OFF_RGB

const uint8_t OFF_RGB[3] = {0, 0, 0}
static

Definition at line 24 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ ORANGE_RGB

const uint8_t ORANGE_RGB[3] = {255, 128, 0}
static

Definition at line 27 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ PINK_RGB

const uint8_t PINK_RGB[3] = {255, 51, 153}
static

Definition at line 28 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ PURPLE_RGB

const uint8_t PURPLE_RGB[3] = {128, 0, 128}
static

Definition at line 29 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ RED_RGB

const uint8_t RED_RGB[3] = {255, 0, 0}
static

Definition at line 30 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ WHITE_RGB

const uint8_t WHITE_RGB[3] = {255, 255, 255}
static

Definition at line 31 of file respeaker-rpi0/porcupine_demo_mic.c.

◆ YELLOW_RGB

const uint8_t YELLOW_RGB[3] = {255, 255, 51}
static

Definition at line 32 of file respeaker-rpi0/porcupine_demo_mic.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:00