ESP-Miner/main/system.h
mutatrum a0c9710a90
Show share reject reasons (#746)
* Show share reject reasons

Fixes #264

* Fix string assignment
2025-03-08 13:07:16 +01:00

16 lines
576 B
C

#ifndef SYSTEM_H_
#define SYSTEM_H_
#include "global_state.h"
void SYSTEM_init_system(GlobalState * GLOBAL_STATE);
void SYSTEM_init_peripherals(GlobalState * GLOBAL_STATE);
void SYSTEM_notify_accepted_share(GlobalState * GLOBAL_STATE);
void SYSTEM_notify_rejected_share(GlobalState * GLOBAL_STATE, char * error_msg);
void SYSTEM_notify_found_nonce(GlobalState * GLOBAL_STATE, double found_diff, uint8_t job_id);
void SYSTEM_notify_mining_started(GlobalState * GLOBAL_STATE);
void SYSTEM_notify_new_ntime(GlobalState * GLOBAL_STATE, uint32_t ntime);
#endif /* SYSTEM_H_ */