123456789101112131415161718192021222324252627282930313233 |
- #include "CM_LIB.h"
- #include "CM_I2C.h"
- #include "CM_I2C_L.h"
- #include <unistd.h>
- #include <stdio.h>
- #include "linux/fcntl.h"
- #include "driver.h"
- #include <string.h>
- uint8_t cm_WriteCommand(uint8_t* pucInsBuff, uint8_t* pucSendVal, uint8_t ucLen)
- {
-
-
-
-
-
- uint8_t ucReturn;
- if ((ucReturn = CM_LOW_LEVEL.SendCommand(pucInsBuff)) != SUCCESS)
- {
- printf("---> cm_WriteCommand ucReturn %d\n", ucReturn);
- return ucReturn;
- }
- ucReturn = CM_LOW_LEVEL.SendData(pucSendVal, ucLen);
-
- return ucReturn;
- }
|