Modbus changed into static library
This commit is contained in:
@@ -56,7 +56,6 @@ Set to 1 to enable debugging features within class:
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#endif
|
||||
#include <chip.h>
|
||||
|
||||
uint32_t millis();
|
||||
#define BYTE 0xA5
|
||||
@@ -72,6 +71,8 @@ uint32_t millis();
|
||||
// functions to manipulate words
|
||||
///#include "util/word.h"
|
||||
#include "word.h"
|
||||
|
||||
|
||||
#include "SerialPort.h"
|
||||
|
||||
/* _____CLASS DEFINITIONS____________________________________________________ */
|
||||
@@ -278,4 +279,4 @@ class ModbusMaster
|
||||
/**
|
||||
@example examples/Basic/Basic.pde
|
||||
@example examples/PhoenixContact_nanoLC/PhoenixContact_nanoLC.pde
|
||||
*/
|
||||
*/
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef MODBUSREGISTER_H_
|
||||
#define MODBUSREGISTER_H_
|
||||
|
||||
#include "ModbusLeader.h"
|
||||
#include "ModbusMaster.h"
|
||||
|
||||
class ModbusRegister {
|
||||
public:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
#ifndef SERIALPORT_H_
|
||||
#define SERIALPORT_H_
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef LPCUART_H_
|
||||
#define LPCUART_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include "chip.h"
|
||||
|
||||
struct LpcPinMap {
|
||||
|
||||
@@ -54,7 +54,7 @@ obtain a copy.
|
||||
|
||||
#ifndef _UTIL_CRC16_H_
|
||||
#define _UTIL_CRC16_H_
|
||||
#include <chip.h>
|
||||
|
||||
|
||||
/** @ingroup util_crc16
|
||||
Processor-independent CRC-16 calculation.
|
||||
|
||||
@@ -35,7 +35,7 @@ This header file provides utility functions for manipulating words.
|
||||
|
||||
#ifndef _UTIL_WORD_H_
|
||||
#define _UTIL_WORD_H_
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
/** @ingroup util_word
|
||||
Return low word of a 32-bit integer.
|
||||
@@ -43,8 +43,9 @@ This header file provides utility functions for manipulating words.
|
||||
@param uint32_t ww (0x00000000..0xFFFFFFFF)
|
||||
@return low word of input (0x0000..0xFFFF)
|
||||
*/
|
||||
static inline uint16_t lowWord(uint32_t ww) {
|
||||
return (uint16_t) ((ww) & 0xFFFF);
|
||||
static inline uint16_t lowWord(uint32_t ww)
|
||||
{
|
||||
return (uint16_t) ((ww) & 0xFFFF);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user