RCM — ESP32 Room Controller
WT32-ETH01 firmware
Loading...
Searching...
No Matches
i2c_cmd_device.h File Reference

Периодическая отправка команд на LCM по общей I2C-шине. More...

#include "esp_err.h"

Go to the source code of this file.

Functions

esp_err_t i2c_cmd_device_init (void)
 Добавляет LCM как устройство на общую шину (i2c_bus_init при необходимости).
 
esp_err_t i2c_cmd_device_start (void)
 Запускает задачу циклической отправки команд на LCM.
 

Detailed Description

Периодическая отправка команд на LCM по общей I2C-шине.

Definition in file i2c_cmd_device.h.

Function Documentation

◆ i2c_cmd_device_init()

esp_err_t i2c_cmd_device_init ( void )

Добавляет LCM как устройство на общую шину (i2c_bus_init при необходимости).

Definition at line 37 of file i2c_cmd_device.c.

References i2c_bus_add_device(), i2c_bus_init(), I2C_DEVICE_ADDR, s_i2c_dev, s_initialized, and TAG.

Referenced by app_main().

◆ i2c_cmd_device_start()

esp_err_t i2c_cmd_device_start ( void )

Запускает задачу циклической отправки команд на LCM.

Definition at line 73 of file i2c_cmd_device.c.

References CMD_INTERVAL_MS, i2c_cmd_task(), s_initialized, and TAG.

Referenced by app_main().