12345678910111213141516 |
- // Mid Level Utility Function: cm_WriteCommand()
- //
- // Note: this module must be after all low level functions in the library and
- // before all high level user function to assure that any reference to
- // this function in this library are satistified.
- #include "CM_LIB.h"
- #include "CM_I2C.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) return ucReturn;
- return CM_LOW_LEVEL.SendData(pucSendVal, ucLen);
- }
|