52 #define HASH_BUF_SIZE 28 53 #define HASH_BUF_POW 5 55 #define NB_MAX_HASH_ENTRIES 1023 56 #define NB_MAX_DEVICES 80 58 #define NB_MAX_HASH_ENTRIES 8192 59 #define NB_MAX_DEVICES 256 62 #define YSTRREF_EMPTY_STRING 0x00ff 63 #define YSTRREF_MODULE_STRING 0x0020 64 #define YSTRREF_mODULE_STRING 0x00a3 65 #define YSTRREF_HUBPORT_STRING 0x00d6 66 #define YSTRREF_SENSOR_STRING 0x0001 68 #ifndef CPU_BIG_ENDIAN 69 #define WORD_TEXT_PR 0x5250 70 #define WORD_TEXT_OG 0x474f 72 #define WORD_TEXT_PR 0x5052 73 #define WORD_TEXT_OG 0x4f47 86 #define YBLKID_WPENTRY 0xf0 87 #define YBLKID_YPCATEG 0xf1 88 #define YBLKID_YPARRAY 0xf2 89 #define YBLKID_YPENTRY 0xf3 90 #define YBLKID_YPENTRYEND (YBLKID_YPENTRY+YOCTO_N_BASECLASSES-1) 105 #define YWP_MARK_FOR_UNREGISTER 0x02 106 #define YWP_BEACON_ON 0x01 121 #ifndef CPU_BIG_ENDIAN 170 #define YMAX_HUB_URL_DEEP 8 171 #define YOCTO_HOSTNAME_NAME (HASH_BUF_SIZE*2+2) 220 #ifndef MICROCHIP_API 222 yUrlRef yHashUrl(
const char *host,
const char *rootUrl, u8 testonly,
char *errmsg);
236 void wpPreventUnregisterDbg(
const char *file, u32 line);
237 void wpAllowUnregisterDbg(
const char *file, u32 line);
238 #define wpPreventUnregister() wpPreventUnregisterDbg(__FILE__,__LINE__) 239 #define wpAllowUnregister() wpAllowUnregisterDbg(__FILE__,__LINE__) 243 #define wpPreventUnregister() wpPreventUnregisterEx() 244 #define wpAllowUnregister() wpAllowUnregisterEx() 249 #ifndef MICROCHIP_API int ypGetFunctionInfo(YAPI_FUNCTION fundesc, char *serial, char *funcId, char *baseType, char *funcName, char *funcVal)
int ypGetAttributes(yBlkHdl hdl, yStrRef *serial, yStrRef *funcId, yStrRef *funcName, Notification_funydx *funcInfo, char *funcVal)
int wpMarkForUnregister(yStrRef serial)
int wpGetDeviceUrl(YAPI_DEVICE devdesc, char *roothubserial, char *request, int requestsize, int *neededsize)
void yHashGetBuf(yHash yhash, u8 *destbuf, u16 bufsize)
void wpPreventUnregisterEx(void)
yUrlRef yHashUrlFromRef(yUrlRef urlref, const char *rootUrl)
int wpGetAllDevUsingHubUrl(yUrlRef hubUrl, yStrRef *buffer, int sizeInStrRef)
int ypGetAttributesByYdx(u8 devYdx, u8 funYdx, yStrRef *serial, yStrRef *logicalName, yStrRef *funcId, yStrRef *funcName, Notification_funydx *funcInfo, char *funcVal)
int wpGetDevYdx(yStrRef serial)
yHash yHashPutBuf(const u8 *buf, u16 len)
YAPI_DEVICE wpSearchEx(yStrRef strref)
int wpGetDeviceInfo(YAPI_DEVICE devdesc, u16 *deviceid, char *productname, char *serial, char *logicalname, u8 *beacon)
void wpAllowUnregisterEx(void)
yUrlRef yHashUrl(const char *host, const char *rootUrl, u8 testonly, char *errmsg)
s16 ypFindBootloaders(yStrRef *serials, u16 maxSerials)
yUrlRef wpGetDeviceUrlRef(YAPI_DEVICE devdesc)
yUrlRef yHashUrlUSB(yHash serial)
u16 yHashGetStrLen(yHash yhash)
void ypGetCategory(yBlkHdl hdl, char *name, yBlkHdl *entries)
int ypGetFunctionsEx(yStrRef categref, YAPI_DEVICE devdesc, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize)
yHash yHashTestBuf(const u8 *buf, u16 len)
int ypGetBootDevHdl(const char *serial)
void yHashGetStr(yHash yhash, char *destbuf, u16 bufsize)
yBlkHdl yBlkListSeek(yBlkHdl hdl, u16 pos)
int ypRegisterByYdx(u8 devYdx, Notification_funydx funInfo, const char *funcVal, YAPI_FUNCTION *fundesc)
void wpGetLogicalName(yBlkHdl hdl, char *logicalName)
int ypRegister(yStrRef categ, yStrRef serial, yStrRef funcId, yStrRef funcName, int funClass, int funYdx, const char *funcVal)
YAPI_DEVICE wpSearch(const char *device_str)
#define YOCTO_PUBVAL_SIZE
int ypGetFunctions(const char *class_str, YAPI_DEVICE devdesc, YAPI_FUNCTION prevfundesc, YAPI_FUNCTION *buffer, int maxsize, int *neededsize)
int yHashSameHub(yUrlRef url_a, yUrlRef url_b)
#define YMAX_HUB_URL_DEEP
yAsbUrlType yHashGetUrlPort(yUrlRef urlref, char *url, u16 *port, yAsbUrlProto *proto, yStrRef *user, yStrRef *password)
int wpRegister(int devYdx, yStrRef serial, yStrRef logicalName, yStrRef productName, u16 productId, yUrlRef devUrl, s8 beacon)
char * yHashGetStrPtr(yHash yhash)
YAPI_DEVICE wpSearchByNameHash(yStrRef strref)
yStrRef wpGetAttribute(yBlkHdl hdl, yWPAttribute attridx)
yHash yHashTestStr(const char *str)
int decodeNetFuncValV2(const u8 *p, Notification_funydx *funInfo, char *funcVal)
YAPI_FUNCTION ypSearch(const char *class_str, const char *func_str)
int ypGetType(yBlkHdl hdl)
yUrlRef yHashUrlAPI(void)
u16 yBlkListLength(yBlkHdl hdl)
YAPI_DEVICE wpSearchByUrl(const char *host, const char *rootUrl)
yHash yHashPutStr(const char *str)
Notification_funydx funInfo
char SerialNumberStr[YOCTO_SERIAL_LEN]
void wpGetSerial(yBlkHdl hdl, char *serial)