コード例 #1
0
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);
}
コード例 #2
0
ファイル: nyx_battery_impl.c プロジェクト: anupamkaul/nyx-lib
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);
}
コード例 #3
0
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);
}
コード例 #4
0
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);
}
コード例 #5
0
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);
}
コード例 #6
0
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);
}
コード例 #7
0
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);
}
コード例 #8
0
ファイル: nyx_battery_impl.c プロジェクト: anupamkaul/nyx-lib
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);
}
コード例 #9
0
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);
}
コード例 #10
0
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);
}
コード例 #11
0
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);
}
コード例 #12
0
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);
}
コード例 #13
0
ファイル: nyx_led_impl.c プロジェクト: arunsirrpi/nyx-lib
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);
}
コード例 #14
0
ファイル: nyx_led_impl.c プロジェクト: arunsirrpi/nyx-lib
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);
}
コード例 #15
0
ファイル: nyx_battery_impl.c プロジェクト: anupamkaul/nyx-lib
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);
}
コード例 #16
0
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);
}
コード例 #17
0
ファイル: nyx_battery_impl.c プロジェクト: anupamkaul/nyx-lib
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);
}
コード例 #18
0
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);
}
コード例 #19
0
ファイル: nyx_battery_impl.c プロジェクト: anupamkaul/nyx-lib
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);
}
コード例 #20
0
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);
}