How to reduce the impact on user programs by replacing electronic components

Refer to the following example to see how to reduce the impact on user programs by replacing electronic components.

Exe :
Replace the API function name from oABC1_START_READ() to Temperature_read() when incorporating the OSS-ECAL for temperature sensor ABC1 into the user program.

1. Add code to the header file of the user program that includes the ABC1 header to rename the API function name.

// user program header
#include "../oABC1.h"

#define Temperature_read oABC1_START_READ

2. Change its header file from ABC1 code to ABC2.

// user program header
#include "../oABC2.h"

#define Temperature_read oABC2_START_READ
OSS-ECAL English
error: Content is protected !!