| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #pragma once
- #include <furi.h>
- #include <gui/gui.h>
- #include <notification/notification_messages.h>
- #include <power/power_service/power.h>
- #include "eth_worker.h"
- #include "finik_eth_icons.h"
- typedef enum {
- DRAW_ALL,
- DRAW_ONLY_TEXT,
- DRAW_ONLY_PICTURES,
- TOTAL_DRAW_MODES = 3,
- } DrawMode;
- typedef enum {
- PROCESS_INIT,
- PROCESS_DHCP,
- PROCESS_STATIC,
- PROCESS_PING,
- PROCESS_RESET,
- } DrawProcess;
- typedef enum {
- CURSOR_CHOOSE_PROCESS,
- CURSOR_CLICK_PROCESS,
- CURSOR_INSIDE_PROCESS,
- CURSOR_EXIT_APP,
- } CursorPosition;
- struct FinikEthApp {
- Gui* gui;
- ViewPort* view_port;
- FuriMessageQueue* event_queue;
- NotificationApp* notifications;
- EthWorker* eth_worker;
- Power* power;
- PowerInfo info;
- DrawMode draw_mode;
- DrawProcess draw_process;
- CursorPosition cursor_position;
- };
- typedef struct FinikEthApp FinikEthApp;
- const NotificationSequence example_led_sequence = {
- &message_red_255,
- &message_blue_255,
- &message_delay_500,
- &message_red_0,
- &message_blue_0,
- &message_delay_500,
- &message_red_255,
- &message_blue_255,
- &message_delay_500,
- &message_red_0,
- &message_blue_0,
- &message_delay_500,
- &message_red_255,
- &message_blue_255,
- &message_delay_500,
- &message_red_0,
- &message_blue_0,
- NULL,
- };
- const NotificationSequence example_vibro_sequence = {
- &message_vibro_on,
- &message_do_not_reset,
- &message_delay_1000,
- &message_delay_1000,
- &message_delay_1000,
- &message_vibro_off,
- NULL,
- };
- const NotificationSequence example_sound_sequence = {
- &message_note_e5, &message_delay_100, &message_note_d5,
- &message_delay_100, &message_note_fs4, &message_delay_250,
- &message_note_gs4, &message_delay_250, &message_note_cs5,
- &message_delay_100, &message_note_b4, &message_delay_100,
- &message_note_d4, &message_delay_250, &message_note_e4,
- &message_delay_250, &message_note_b4, &message_delay_100,
- &message_note_a4, &message_delay_100, &message_note_cs4,
- &message_delay_250, &message_note_e4, &message_delay_250,
- &message_note_a4, &message_delay_500, NULL,
- };
|