DRV_SST38_ReadProductId Function

C

bool DRV_SST38_ReadProductId( const DRV_HANDLE handle, uint16_t* manufacturer, uint16_t* device )

Summary

Reads Manufacturer and Device ID of the SST38 device.

Description

This function schedules a blocking operation for reading the Manufacturer and Device ID.

Preconditions

The DRV_SST38_Open() routine must have been called for the specified SST38 driver instance.

Parameters

ParamDescription
handleA valid open-instance handle, returned from the driver's open routine
manufacturerPointer to 16 bit variable that will be updated with read manufacturer value
devicePointer to 16 bit variable that will be updated with read device value

Returns

  • true - if the read is successfully completed

  • false - if command fails

Example

DRV_HANDLE handle;
uint16_t manufacturer = 0;
uint16_t device = 0;

if(DRV_SST38_ReadProductId(appData.handle, &manufacturer, &device) == false)
{
    printf("Error handling here");
}

Remarks

None.