diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 21:23:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-07-21 21:23:18 +0000 |
commit | d9714b556703561a0abcbe71970b1cd6922168a6 (patch) | |
tree | 70b7893243b8ee2e6b8b5fd95106c4ab962699c5 /apps/include/modbus/mbutils.h | |
parent | ebf70f8a79eb8ef23bc1d99938768ef06c466119 (diff) | |
download | nuttx-d9714b556703561a0abcbe71970b1cd6922168a6.tar.gz nuttx-d9714b556703561a0abcbe71970b1cd6922168a6.tar.bz2 nuttx-d9714b556703561a0abcbe71970b1cd6922168a6.zip |
Use NuttX types in FreeModBus port; Add FreeModBus demo at apps/examples/modbus; Add new termios APIs
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4964 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/include/modbus/mbutils.h')
-rw-r--r-- | apps/include/modbus/mbutils.h | 12 |
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 ); /*! @} */ |