21 #ifndef OC_KNX_INTERNAL_H
22 #define OC_KNX_INTERNAL_H
181 bool oc_s_mode_notification_to_json(
182 char *buffer,
size_t buffer_size,
311 void oc_initialise_spake_data(
void);
Main API of the stack for client and server.
void oc_knx_dump_fingerprint()
dump the fingerprint value to storage
const char * oc_core_get_lsm_event_as_string(oc_lsm_event_t lsm_e)
convert the load state machine (lsm) event to string
oc_lsm_event_t
LSM event values.
@ LSM_E_NOP
(0) No operation
@ LSM_E_STARTLOADING
(1) Request to start the loading of the loadable part
@ LSM_E_UNLOAD
(4) cmd unload: state will be UNLOADED
@ LSM_E_LOADCOMPLETE
(2) cmd loading complete, state will be LOADED
void oc_create_knx_resources(size_t device)
Creation of the KNX device resources.
oc_lsm_state
LSM state machine values.
@ LSM_S_UNLOADED
(0) state is unloaded, e.g.
@ LSM_S_LOADCOMPLETING
(5) cmd unload: state will be UNLOADED
@ LSM_S_LOADING
(2) state loading.
@ LSM_S_UNLOADING
(4) state unloading loading.
@ LSM_S_LOADED
(1) state is LOADED, e.g.
void oc_knx_load_state(size_t device_index)
load the state of the device from persistent storage load data for:
int oc_knx_knx_ignore_smessage_from_self(bool ignore)
runtime switch to ignore s-mode messages send by ourselves.
oc_lsm_state_t oc_a_lsm_state(size_t device_index)
retrieve the current lsm state
int oc_reset_device(size_t device_index, int reset_value)
reset the device the reset value according to the specification:
const char * oc_core_get_lsm_state_as_string(oc_lsm_state_t lsm_s)
convert the load state machine (lsm) state to string
bool oc_is_device_in_runtime(size_t device_index)
checks if the device is in "run-time" mode run-time is:
void oc_knx_set_ldevid(char *ldevid, int len)
sets the ldevid
enum oc_lsm_state oc_lsm_state_t
LSM state machine values.
void(* oc_lsm_change_cb_t)(size_t device, oc_lsm_state_t lsm_state, void *data)
Callback invoked by the stack to inform the change of the lsm.
void oc_knx_set_idevid(const char *idevid, int length)
sets the idevid
struct oc_group_object_notification_t oc_group_object_notification_t
Group Object Notification (s-mode messages) Can be used for receiving messages or sending messages.
void oc_knx_load_fingerprint()
load the fingerprint value from storage
void oc_knx_set_fingerprint(uint64_t fingerprint)
sets the fingerprint value (of the loaded materials)
struct oc_pase_t oc_pase_t
Pase Resource Object.
int oc_a_lsm_set_state(size_t device_index, oc_lsm_event_t new_state)
retrieve the current lsm state
void oc_set_lsm_change_cb(oc_lsm_change_cb_t cb, void *data)
Set the load state machine change callback.
void oc_knx_increase_fingerprint()
increase the finger print value
Group Object Notification (s-mode messages) Can be used for receiving messages or sending messages.
oc_string_t st
Service type code (write=w, read=r, response=rp)
uint32_t sia
(source id) sender individual address
oc_string_t value
generic value received.
oc_string_t id
recipient id