nyx_error_t nyx_security_crypt_aes(nyx_device_handle_t handle, int key_index, nyx_security_aes_block_mode_t mode, int encrypt, const char *src, int srclen, char *dest, int *destlen, int *ivlen) { nyx_execute_return_function(security_crypt_aes, SECURITY, CRYPT_AES, handle, key_index, mode, encrypt, src, srclen, dest, destlen, ivlen); }
nyx_error_t nyx_battery_query_battery_status(nyx_device_handle_t handle, nyx_battery_status_t *status) { nyx_execute_return_function(battery_query_battery_status, BATTERY, QUERY_BATTERY_STATUS, handle, status); }
nyx_error_t nyx_os_info_query(nyx_device_handle_t handle, nyx_os_info_query_t type, const char **val) { nyx_execute_return_function(os_info_query, OS_INFO, QUERY, handle, type, val); }
nyx_error_t nyx_security_load_certificate(nyx_device_handle_t handle, int index, char **x509) { nyx_execute_return_function(security_load_certificate, SECURITY, LOAD_CERTIFICATE, handle, index, x509); }
nyx_error_t nyx_security_save_certificate(nyx_device_handle_t handle, int *index, const char *x509) { nyx_execute_return_function(security_save_certificate, SECURITY, SAVE_CERTIFICATE, handle, index, x509); }
nyx_error_t nyx_security_load_hash(nyx_device_handle_t handle, const char *hash_algo, int index, char *dest) { nyx_execute_return_function(security_load_hash, SECURITY, LOAD_HASH, handle, hash_algo, index, dest); }
nyx_error_t nyx_haptics_cancel(nyx_device_handle_t handle, int32_t effect_id) { nyx_execute_return_function(haptics_cancel, HAPTICS, CANCEL, handle, effect_id); }
nyx_error_t nyx_battery_get_ctia_parameters(nyx_device_handle_t handle, nyx_battery_ctia_t *params) { nyx_execute_return_function(battery_get_ctia_parameters, BATTERY, GET_CTIA_PARAMETERS, handle, params); }
nyx_error_t nyx_security_update_hash(nyx_device_handle_t handle, const char *src, int srclen) { nyx_execute_return_function(security_update_hash, SECURITY, UPDATE_HASH, handle, src, srclen); }
nyx_error_t nyx_security_init_hash(nyx_device_handle_t handle, const char *hash_algo) { nyx_execute_return_function(security_init_hash, SECURITY, INIT_HASH, handle, hash_algo); }
nyx_error_t nyx_security_crypt_rsa(nyx_device_handle_t handle, int key_index, int encrypt, const char *src, int srclen, char *dest, int *destlen) { nyx_execute_return_function(security_crypt_rsa, SECURITY, CRYPT_RSA, handle, key_index, encrypt, src, srclen, dest, destlen); }
nyx_error_t nyx_security_create_rsa_key(nyx_device_handle_t handle, int keylen, int *key_index) { nyx_execute_return_function(security_create_rsa_key, SECURITY, CREATE_RSA_KEY, handle, keylen, key_index); }
nyx_error_t nyx_led_get_brightness (nyx_device_handle_t handle, int32_t *brightness_out_ptr) { nyx_execute_return_function(led_get_brightness, LED, GET_BRIGHTNESS, handle, brightness_out_ptr); }
nyx_error_t nyx_led_set_brightness(nyx_device_handle_t handle, int32_t brightness) { nyx_execute_return_function(led_set_brightness, LED, SET_BRIGHTNESS, handle, brightness); }
nyx_error_t nyx_battery_register_battery_status_callback(nyx_device_handle_t handle, nyx_device_callback_function_t callback_func, void *context) { nyx_execute_return_function(battery_register_battery_status_callback, BATTERY, REGISTER_BATTERY_STATUS_CALLBACK, handle, callback_func, context); }
nyx_error_t nyx_security_finalize_hash(nyx_device_handle_t handle, char *dest) { nyx_execute_return_function(security_finalize_hash, SECURITY, FINALIZE_HASH, handle, dest); }
nyx_error_t nyx_battery_authenticate_battery(nyx_device_handle_t handle, bool *result) { nyx_execute_return_function(battery_authenticate_battery, BATTERY, AUTHENTICATE_BATTERY, handle, result); }
nyx_error_t nyx_security_finalize_and_save_hash(nyx_device_handle_t handle, int *index) { nyx_execute_return_function(security_finalize_and_save_hash, SECURITY, FINALIZE_AND_SAVE_HASH, handle, index); }
nyx_error_t nyx_battery_set_wakeup_percentage(nyx_device_handle_t handle, int32_t percentage) { nyx_execute_return_function(battery_set_wakeup_percentage, BATTERY, SET_WAKEUP_PARAMETERS, handle, percentage); }
nyx_error_t nyx_haptics_vibrate(nyx_device_handle_t handle, nyx_haptics_configuration_t configuration) { nyx_execute_return_function(haptics_vibrate, HAPTICS, VIBRATE, handle, configuration); }