Initializing the repository
This commit is contained in:
22
inc/jl_modbus/jl_config.h
Normal file
22
inc/jl_modbus/jl_config.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef JLV135_CLI_CONFIG_H
|
||||
#define JLV135_CLI_CONFIG_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#define JLV135_BACKUP_BLOCKS_ADDRESS 0x40400
|
||||
#define JLV135_DEV_MTD_BLOCK "/dev/mtdblock0"
|
||||
|
||||
void
|
||||
jl_config_load(const char *name, void *def, size_t size);
|
||||
|
||||
bool
|
||||
jl_config_read(int block_num, void *data, size_t size);
|
||||
|
||||
bool
|
||||
jl_config_write(int block_num, void *data, size_t size);
|
||||
|
||||
void
|
||||
jl_config_save(const char *name, void *def, size_t size);
|
||||
|
||||
#endif // JLV135_CLI_CONFIG_H
|
||||
Reference in New Issue
Block a user