#include "yversion.h"

Go to the source code of this file.
Classes | |
| struct | Notification_child |
| struct | Notification_firmware |
| struct | Notification_funcname |
| struct | Notification_funcnameydx |
| struct | Notification_funcval |
| union | Notification_funydx |
| struct | Notification_header |
| struct | Notification_name |
| struct | Notification_prodinfo |
| struct | Notification_small |
| struct | Notification_tiny |
| struct | SAFE_U16 |
| union | USB_Conf_Pkt |
| union | USB_Meta_Pkt |
| union | USB_Notify_Pkt |
| union | USB_Packet |
| union | USB_Prog_Packet |
| struct | USB_Report_Pkt_V1 |
| struct | USB_Report_Pkt_V2 |
| union | WSStreamHead |
| struct | yDeviceSt |
| union | yFirmwareSt |
| struct | YSTREAM_Head |
Typedefs | |
| typedef char | Notification_product[YOCTO_PRODUCTNAME_LEN] |
| typedef u32 | u31 |
| typedef s32 | YAPI_DEVICE |
| typedef s32 | YAPI_FUNCTION |
| typedef void(* | yapiRequestAsyncCallback) (void *context, const u8 *result, u32 resultlen, int retcode, const char *errmsg) |
| typedef void(* | yapiRequestProgressCallback) (void *context, u32 acked, u32 totalbytes) |
| typedef u16 | yBlkHdl |
| typedef void * | yCRITICAL_SECTION |
| typedef s16 | yHash |
| typedef void * | YIOHDL |
| typedef int | YSOCKET |
| typedef yHash | yStrRef |
| typedef u32 | yTime |
| typedef yHash | yUrlRef |
| typedef s32 | YUSBDEV |
| typedef s32 | YUSBIO |
Enumerations | |
| enum | YRETCODE { YAPI_SUCCESS = 0, YAPI_NOT_INITIALIZED = -1, YAPI_INVALID_ARGUMENT = -2, YAPI_NOT_SUPPORTED = -3, YAPI_DEVICE_NOT_FOUND = -4, YAPI_VERSION_MISMATCH = -5, YAPI_DEVICE_BUSY = -6, YAPI_TIMEOUT = -7, YAPI_IO_ERROR = -8, YAPI_NO_MORE_DATA = -9, YAPI_EXHAUSTED = -10, YAPI_DOUBLE_ACCES = -11, YAPI_UNAUTHORIZED = -12, YAPI_RTC_NOT_READY = -13, YAPI_FILE_NOT_FOUND = -14 } |
Functions | |
| void | yDeleteCriticalSection (yCRITICAL_SECTION *cs) |
| void | yEnterCriticalSection (yCRITICAL_SECTION *cs) |
| void | yInitializeCriticalSection (yCRITICAL_SECTION *cs) |
| void | yLeaveCriticalSection (yCRITICAL_SECTION *cs) |
| int | yTryEnterCriticalSection (yCRITICAL_SECTION *cs) |
| #define ERASE_BLOCK_SIZE_BADDR (ERASE_BLOCK_SIZE_INSTR*2) |
| #define FROM_SAFE_U16 | ( | safe, | |
| unsafe | |||
| ) | {(unsafe) = (safe).low |((u16)((safe).high)<<8);} |
| #define GET_PROG_POS_PAGENO | ( | PKT_EXT, | |
| PAGENO, | |||
| POS | |||
| ) |
| #define MAX_INSTR_IN_PACKET (MAX_BYTE_IN_PACKET/3) |
| #define NOTIFY_NETPKT_MAX_LEN (NOTIFY_NETPKT_START_LEN+1+YOCTO_SERIAL_LEN+1+YOCTO_FUNCTION_LEN+1+YOCTO_LOGICAL_LEN+1+1) |
| #define NOTIFY_PKT_CHILD_LEN (sizeof(Notification_header) + sizeof(Notification_child)) |
| #define NOTIFY_PKT_FIRMWARE_LEN (sizeof(Notification_header) + sizeof(Notification_firmware)) |
| #define NOTIFY_PKT_FUNCNAME_LEN (sizeof(Notification_header) + sizeof(Notification_funcname)) |
| #define NOTIFY_PKT_FUNCNAMEYDX_LEN (sizeof(Notification_header) + sizeof(Notification_funcnameydx)) |
| #define NOTIFY_PKT_FUNCVAL_LEN (sizeof(Notification_header) + sizeof(Notification_funcval)) |
| #define NOTIFY_PKT_LOG_LEN (sizeof(Notification_header) + sizeof(u8)) |
| #define NOTIFY_PKT_NAME_LEN (sizeof(Notification_header) + sizeof(Notification_name)) |
| #define NOTIFY_PKT_PRODINFO_LEN (sizeof(Notification_header) + sizeof(Notification_prodinfo)) |
| #define NOTIFY_PKT_PRODNAME_LEN (sizeof(Notification_header) + sizeof(Notification_product)) |
| #define NOTIFY_PKT_STREAMREADY_LEN (sizeof(Notification_header) + sizeof(u8)) |
| #define NOTIFY_PKT_TINYVAL_MAXLEN (sizeof(Notification_tiny) + YOCTO_PUBVAL_SIZE) |
| #define PROGRAM_BLOCK_SIZE_BADDR (PROGRAM_BLOCK_SIZE_INSTR*2) |
| #define SET_PROG_POS_PAGENO | ( | PKT_EXT, | |
| PAGENO, | |||
| POS | |||
| ) |
| #define TO_SAFE_U16 | ( | safe, | |
| unsafe | |||
| ) | {(safe).low = (unsafe)&0xff; (safe).high=(unsafe)>>8;} |
| #define USB_META_WS_ANNOUNCE_SIZE (8 + YOCTO_SERIAL_LEN) |
| #define YOCTO_SERIAL_SEED_SIZE (YOCTO_SERIAL_LEN - YOCTO_BASE_SERIAL_LEN - 1) |
| #define YOCTO_WEBSOCKET_MAGIC "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" |
| typedef char Notification_product[YOCTO_PRODUCTNAME_LEN] |
| typedef s32 YAPI_DEVICE |
| typedef s32 YAPI_FUNCTION |
| typedef void(* yapiRequestAsyncCallback) (void *context, const u8 *result, u32 resultlen, int retcode, const char *errmsg) |
| typedef void(* yapiRequestProgressCallback) (void *context, u32 acked, u32 totalbytes) |
| typedef void* yCRITICAL_SECTION |
| enum YRETCODE |
| void yDeleteCriticalSection | ( | yCRITICAL_SECTION * | cs | ) |
| void yEnterCriticalSection | ( | yCRITICAL_SECTION * | cs | ) |
| void yInitializeCriticalSection | ( | yCRITICAL_SECTION * | cs | ) |
| void yLeaveCriticalSection | ( | yCRITICAL_SECTION * | cs | ) |
| int yTryEnterCriticalSection | ( | yCRITICAL_SECTION * | cs | ) |