Muteki
EABI code execution on Besta® RTOS devices.
Loading...
Searching...
No Matches
id.h File Reference

Device identification and information utilities. More...

#include "common.h"

Go to the source code of this file.

Data Structures

struct  id_device_info_s
 Device info. More...

Typedefs

typedef struct id_device_info_s id_device_info_t
 Device info.

Enumerations

enum  id_device_feature_mask_e { DEVICE_FEATURE_NO_TOUCH_PANEL = 0x0001 , DEVICE_FEATURE_NO_HW_KEYBOARD = 0x0002 , DEVICE_FEATURE_NO_FKEY = 0x0008 }
 Hardware feature masks. More...

Functions

id_device_info_t * GetMasterIDInfo (id_device_info_t *out_info)
 Read the device info.
size_t GetMasterSerialNumber (char serial_out[17])
 Read the device serial number.

Detailed Description

Device identification and information utilities.

Enumeration Type Documentation

◆ id_device_feature_mask_e

Hardware feature masks.

A bit 1 means that the corresponding hardware feature is NOT present on the device.

Enumerator
DEVICE_FEATURE_NO_TOUCH_PANEL 

Device does not have a touch panel and does not support touch screen operation.

DEVICE_FEATURE_NO_HW_KEYBOARD 

Device does not have a hardware keyboard and/or prefer to use a software keyboard.

DEVICE_FEATURE_NO_FKEY 

Device does not have physical F-keys and alternative keys/menus must be used in place of them.

Function Documentation

◆ GetMasterIDInfo()

id_device_info_t * GetMasterIDInfo ( id_device_info_t * out_info)

Read the device info.

Syscall Number
0x100c1
Parameters
out_infoPointer to the output device info struct.
Returns
out_info if successful, NULL if not.

◆ GetMasterSerialNumber()

size_t GetMasterSerialNumber ( char serial_out[17])

Read the device serial number.

Warning
The caller must zero-alloc the buffer to ensure that the string is properly terminated.
Syscall Number
0x102c8
Parameters
serial_outOutput buffer that will hold the serial number.
Returns
Number of bytes read.