monoZ docs
MZ_Addon_board_UV.c File Reference
#include "MZ_sys_cmsis_os2.h"
#include "MZ_timer.h"
#include "MZ_print.h"
#include "stm32l4xx_hal_i2c.h"
#include "MZ_Addon_Si1133.h"
#include "stdio.h"

Go to the source code of this file.

Macros

#define UV_APP_STACK_SIZE   (512) /* Stack size for the thread */
 
#define UV_READ_TIME   (pdMS_TO_TICKS(60000))
 

Functions

static void float_to_str (char *str, float val)
 
static void uv_read_timer_cb (TimerHandle_t xTimer)
 
static void uv_app (void *arg)
 
mz_error_t uv_app_init (void)
 

Variables

static mz_thread_t uv_thread_id = NULL
 
static StaticTask_t uv_cb_mem
 
static StackType_t uv_stack [UV_APP_STACK_SIZE]
 
static char timer_expiry_flag = 0
 
static char sensor_init = SI_FAIL
 

Macro Definition Documentation

◆ UV_APP_STACK_SIZE

#define UV_APP_STACK_SIZE   (512) /* Stack size for the thread */

Definition at line 37 of file MZ_Addon_board_UV.c.

◆ UV_READ_TIME

#define UV_READ_TIME   (pdMS_TO_TICKS(60000))

Definition at line 44 of file MZ_Addon_board_UV.c.

Function Documentation

◆ float_to_str()

static void float_to_str ( char *  str,
float  val 
)
static

Definition at line 56 of file MZ_Addon_board_UV.c.

◆ uv_read_timer_cb()

static void uv_read_timer_cb ( TimerHandle_t  xTimer)
static

Definition at line 75 of file MZ_Addon_board_UV.c.

◆ uv_app()

static void uv_app ( void *  arg)
static

Definition at line 93 of file MZ_Addon_board_UV.c.

◆ uv_app_init()

mz_error_t uv_app_init ( void  )

Definition at line 160 of file MZ_Addon_board_UV.c.

Variable Documentation

◆ uv_thread_id

mz_thread_t uv_thread_id = NULL
static

Definition at line 38 of file MZ_Addon_board_UV.c.

◆ uv_cb_mem

StaticTask_t uv_cb_mem
static

Definition at line 39 of file MZ_Addon_board_UV.c.

◆ uv_stack

StackType_t uv_stack[UV_APP_STACK_SIZE]
static

Definition at line 40 of file MZ_Addon_board_UV.c.

◆ timer_expiry_flag

char timer_expiry_flag = 0
static

Definition at line 45 of file MZ_Addon_board_UV.c.

◆ sensor_init

char sensor_init = SI_FAIL
static

Definition at line 49 of file MZ_Addon_board_UV.c.