summaryrefslogtreecommitdiff
path: root/apps/include/modbus/mbutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/include/modbus/mbutils.h')
-rw-r--r--apps/include/modbus/mbutils.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/include/modbus/mbutils.h b/apps/include/modbus/mbutils.h
index 61495751d..5f17376cc 100644
--- a/apps/include/modbus/mbutils.h
+++ b/apps/include/modbus/mbutils.h
@@ -75,8 +75,8 @@ PR_BEGIN_EXTERN_C
* xMBUtilSetBits( ucBits, 8, 8, 0x5A);
* \endcode
*/
-void xMBUtilSetBits( UCHAR * ucByteBuf, USHORT usBitOffset,
- UCHAR ucNBits, UCHAR ucValues );
+void xMBUtilSetBits( uint8_t * ucByteBuf, uint16_t usBitOffset,
+ uint8_t ucNBits, uint8_t ucValues );
/*! \brief Function to read bits in a byte buffer.
*
@@ -90,15 +90,15 @@ void xMBUtilSetBits( UCHAR * ucByteBuf, USHORT usBitOffset,
* than 8.
*
* \code
- * UCHAR ucBits[2] = {0, 0};
- * UCHAR ucResult;
+ * uint8_t ucBits[2] = {0, 0};
+ * uint8_t ucResult;
*
* // Extract the bits 3 - 10.
* ucResult = xMBUtilGetBits( ucBits, 3, 8 );
* \endcode
*/
-UCHAR xMBUtilGetBits( UCHAR * ucByteBuf, USHORT usBitOffset,
- UCHAR ucNBits );
+uint8_t xMBUtilGetBits( uint8_t * ucByteBuf, uint16_t usBitOffset,
+ uint8_t ucNBits );
/*! @} */