Data Structures | |
struct | generic_dtt_client_callbacks_t |
struct | generic_dtt_client_settings_t |
User provided settings and callbacks for the model instance. More... | |
union | generic_dtt_client_msg_data_t |
Union for holding current message packet. More... | |
struct | generic_dtt_client_t |
Macros | |
#define | GENERIC_DTT_CLIENT_MODEL_ID 0x1005 |
Client model ID. | |
Typedefs | |
typedef void(* | generic_dtt_state_status_cb_t) (const generic_dtt_client_t *p_self, const access_message_rx_meta_t *p_meta, const generic_dtt_status_params_t *p_in) |
Callback type for Default Transition Time state related transactions. More... | |
Functions | |
uint32_t | generic_dtt_client_init (generic_dtt_client_t *p_client, uint8_t element_index) |
Initializes Generic Default Transition Time client. More... | |
uint32_t | generic_dtt_client_set (generic_dtt_client_t *p_client, const generic_dtt_set_params_t *p_params) |
Sends a Set message to the server. More... | |
uint32_t | generic_dtt_client_set_unack (generic_dtt_client_t *p_client, const generic_dtt_set_params_t *p_params, uint8_t repeats) |
Sends a Set Unacknowledged message to the server. More... | |
uint32_t | generic_dtt_client_get (generic_dtt_client_t *p_client) |
Sends a Get message to the server. More... | |
typedef void(* generic_dtt_state_status_cb_t) (const generic_dtt_client_t *p_self, const access_message_rx_meta_t *p_meta, const generic_dtt_status_params_t *p_in) |
Callback type for Default Transition Time state related transactions.
[in] | p_self | Pointer to the model structure |
[in] | p_meta | Access metadata for the received message |
[in] | p_in | Pointer to the input event parameters for the user application |
Definition at line 69 of file generic_dtt_client.h.
uint32_t generic_dtt_client_init | ( | generic_dtt_client_t * | p_client, |
uint8_t | element_index | ||
) |
Initializes Generic Default Transition Time client.
[in] | p_client | Client model context pointer. |
[in] | element_index | Element index to add the model |
NRF_SUCCESS | If model is initialized succesfully |
uint32_t generic_dtt_client_set | ( | generic_dtt_client_t * | p_client, |
const generic_dtt_set_params_t * | p_params | ||
) |
Sends a Set message to the server.
[in] | p_client | Client model context pointer. |
[in] | p_params | Message parameters. |
NRF_SUCCESS | If the message is handed over to the mesh stack for transmission. |
uint32_t generic_dtt_client_set_unack | ( | generic_dtt_client_t * | p_client, |
const generic_dtt_set_params_t * | p_params, | ||
uint8_t | repeats | ||
) |
Sends a Set Unacknowledged message to the server.
[in] | p_client | Client model context pointer. |
[in] | p_params | Message parameters. |
[in] | repeats | Number of repetitions to use while sending unacknowledged message. |
NRF_SUCCESS | If the message is handed over to the mesh stack for transmission. |
uint32_t generic_dtt_client_get | ( | generic_dtt_client_t * | p_client | ) |
Sends a Get message to the server.
[in] | p_client | Client model context pointer. |
NRF_SUCCESS | If the message is handed over to the mesh stack for transmission. |