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/mbframe.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/mbframe.h')
-rw-r--r-- | apps/include/modbus/mbframe.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/include/modbus/mbframe.h b/apps/include/modbus/mbframe.h index 99d59c613..0f701e6e5 100644 --- a/apps/include/modbus/mbframe.h +++ b/apps/include/modbus/mbframe.h @@ -71,13 +71,13 @@ typedef void ( *pvMBFrameStart ) ( void ); typedef void ( *pvMBFrameStop ) ( void ); -typedef eMBErrorCode( *peMBFrameReceive ) ( UCHAR * pucRcvAddress, - UCHAR ** pucFrame, - USHORT * pusLength ); +typedef eMBErrorCode( *peMBFrameReceive ) ( uint8_t * pucRcvAddress, + uint8_t ** pucFrame, + uint16_t * pusLength ); -typedef eMBErrorCode( *peMBFrameSend ) ( UCHAR slaveAddress, - const UCHAR * pucFrame, - USHORT usLength ); +typedef eMBErrorCode( *peMBFrameSend ) ( uint8_t slaveAddress, + const uint8_t * pucFrame, + uint16_t usLength ); typedef void( *pvMBFrameClose ) ( void ); |