1#ifndef RTS_REMOTE_STORE_H
2#define RTS_REMOTE_STORE_H
54 uint32_t remote_address, uint16_t rolling_code);
67 uint32_t remote_address);
80 uint32_t remote_address);
91 uint32_t remote_address);
102 uint32_t remote_address);
uint16_t rts_remote_store_next_code(struct rts_remote_store *store, uint32_t remote_address)
Get the rolling code for this remote, then increment and persist.
Definition: rts_remote_store.c:34
void rts_remote_store_close(struct rts_remote_store *store)
Close and free any resources allocated via a previous call to rts_remote_store_init*()
Definition: rts_remote_store.c:76
bool rts_remote_store_known_remote(struct rts_remote_store *store, uint32_t remote_address)
Check if this is a known remote address.
Definition: rts_remote_store.c:43
void rts_remote_store_forget(struct rts_remote_store *store, uint32_t remote_address)
Forget a specific remote.
Definition: rts_remote_store.c:55
uint16_t rts_remote_store_get_code(struct rts_remote_store *store, uint32_t remote_address)
Get the rolling code for this remote.
Definition: rts_remote_store.c:17
void rts_remote_store_clear(struct rts_remote_store *store)
Clear all remotes and rolling codes.
Definition: rts_remote_store.c:66
void rts_remote_store_set_code(struct rts_remote_store *store, uint32_t remote_address, uint16_t rolling_code)
Set the rolling code for this remote, create if doesn't exist.
Definition: rts_remote_store.c:6
Provides an interface for a datastore which contains details about remote controls and rolling codes.
Definition: rts_remote_store.h:29