DRV_SST39_ReadProductId Function
C
bool DRV_SST39_ReadProductId( const DRV_HANDLE handle, uint8_t* manufacturer, uint8_t* device )
Summary
Reads Manufacturer and Device ID of the SST39 device.
Description
This function schedules a blocking operation for reading the Manufacturer and Device ID.
Preconditions
The DRV_SST39_Open() routine must have been called for the specified SST39 driver instance.
Parameters
Param | Description |
---|---|
handle | A valid open-instance handle, returned from the driver's open routine |
manufacturer | Pointer to 8 bit variable that will be updated with read manufacturer value |
device | Pointer to 8 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; uint8_t manufacturer = 0; uint8_t device = 0; if(DRV_SST39_ReadProductId(appData.handle, &manufacturer, &device) == false) { printf("Error handling here"); }
Remarks
None.