Ability to read or modify serial number string

This commit is contained in:
lucianom
2020-05-19 12:43:56 +01:00
parent 468b69cb62
commit b7cbc5fe9e
5 changed files with 49 additions and 8 deletions

View File

@@ -62,6 +62,16 @@ void XUA_Endpoint0_setProductStr(char * unsafe product_str);
void XUA_Endpoint0_setProductStr(char * product_str);
#endif
/** Function to set the Serial string
*
* \param serial_str Serial string to set
*/
#ifdef __XC__
void XUA_Endpoint0_setSerialStr(char * unsafe serial_str);
#else
void XUA_Endpoint0_setSerialStr(char * serial_str);
#endif
/** Function to set the BCD device
*
* \param bcdDevice BCD device to set
@@ -72,7 +82,7 @@ void XUA_Endpoint0_setBcdDevice(unsigned short bcdDevice);
/** Function to get the Vendor string
*
* \param vid vendor string
* \return vendor string
*/
#ifdef __XC__
char * unsafe XUA_Endpoint0_getVendorStr();
@@ -82,7 +92,7 @@ char * XUA_Endpoint0_getVendorStr(;
/** Function to get the Product string
*
* \param pid Product string
* \return Product string
*/
#ifdef __XC__
char * unsafe XUA_Endpoint0_getProductStr();
@@ -90,15 +100,25 @@ char * unsafe XUA_Endpoint0_getProductStr();
char * XUA_Endpoint0_getProductStr(;
#endif
/** Function to get the Vendor string
/** Function to get the Serial Number string
*
* \return Vendor string
* \return Serial string
*/
#ifdef __XC__
char * unsafe XUA_Endpoint0_getSerialStr();
#else
char * XUA_Endpoint0_getSerialStr(;
#endif
/** Function to get the Vendor ID
*
* \return Vendor ID
*/
unsigned short XUA_Endpoint0_getVendorId();
/** Function to get the Product string
/** Function to get the Product ID
*
* \return Product string
* \return Product ID
*/
unsigned short XUA_Endpoint0_getProductId();