17 #ifndef __SECURE_DEVICE_ACCESS_H__ 18 #define __SECURE_DEVICE_ACCESS_H__ 69 typedef void *sda_operation_ctx_h;
76 SDA_OPERATION_NONE = 0,
77 SDA_OPERATION_FUNC_CALL = 1,
78 SDA_OPERATION_LWM2M = 2
82 #define SDA_RESPONSE_HEADER_SIZE 24 126 void *callback_context,
127 uint8_t *response_buffer_out,
128 size_t response_buffer_out_max_size,
129 size_t *response_message_actual_size_out);
172 size_t *scope_size_out);
206 size_t *func_call_name_size_out);
223 int64_t *num_param_out);
242 const uint8_t **data_param_out,
243 size_t *data_param_size_out);
250 #endif //__SECURE_DEVICE_ACCESS_H__ sda_status_e sda_finalize(void)
Secure device access status/error codes. This list may grow as needed.
sda_status_e sda_command_type_get(sda_operation_ctx_h handle, sda_command_type_e *command_type)
sda_status_e sda_func_call_numeric_parameter_get(sda_operation_ctx_h handle, uint32_t index, int64_t *num_param_out)
sda_status_e sda_response_data_set(sda_operation_ctx_h handle, uint8_t *buffer, size_t buffer_size)
sda_status_e sda_operation_process(const uint8_t *message, size_t message_size, user_callback callback, void *callback_context, uint8_t *response_buffer_out, size_t response_buffer_out_max_size, size_t *response_message_actual_size_out)
sda_status_e sda_init(void)
sda_status_e sda_func_call_data_parameter_get(sda_operation_ctx_h handle, uint32_t index, const uint8_t **data_param_out, size_t *data_param_size_out)
sda_status_e(* user_callback)(sda_operation_ctx_h, void *)
User callback that defines and checks operation permissions and performs the operation.
Definition: secure_device_access.h:72
sda_status_e sda_scope_get_next(sda_operation_ctx_h handle, const uint8_t **scope_out, size_t *scope_size_out)
sda_status_e
Definition: sda_status.h:33
sda_status_e sda_func_call_name_get(sda_operation_ctx_h handle, const uint8_t **func_call_name_out, size_t *func_call_name_size_out)