MF32BSP_XerolySkinner 2.0.0
C++版本的驱动库
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Private 属性 | 所有成员列表
bsp_ModBus_STM32类 参考

STM32用串口的ModBus发送器 更多...

#include <bsp_ModBus_STM32.h>

类 bsp_ModBus_STM32 继承关系图:
Inheritance graph
[图例]
bsp_ModBus_STM32 的协作图:
Collaboration graph
[图例]

Public 成员函数

 bsp_ModBus_STM32 (UART_HandleTypeDef *huart, u8 ID, uint32_t Timeout)
 
- Public 成员函数 继承自 bsp_ModBus_Tx
 bsp_ModBus_Tx (u8 ID)
 
void ReadKeepReg (u16 address, u16 mem)
 发送读取保存寄存器的指令 更多...
 
void ReadInReg (u16 address, u16 mem)
 发送读取输入寄存器的指令 更多...
 
void WriteOneReg (u16 address, u16 var)
 发送写一个寄存器的指令 更多...
 
void WriteRegs (u16 address, u16 mem, u16 *var)
 发送写多个寄存器的指令 更多...
 
void WriteRegsVar (u16 address, u16 mem,...)
 发送写多个寄存器的指令 更多...
 
void ReadOutCoil (u16 address, u16 mem)
 发送读输出线圈的指令 更多...
 
void ReadInCoil (u16 address, u16 mem)
 发送读输入线圈的指令 更多...
 
void WriteOneCoil (u16 address, u16 state)
 发送写入一个线圈的指令 更多...
 
void WriteCoils (u16 address, u16 mem, u8 *var)
 发送写多个线圈的指令 更多...
 
void WriteCoilsVar (u16 address, u16 mem,...)
 发送写多个线圈的指令 更多...
 

Protected 成员函数

virtual void Transmit (u8 *dat, u16 len)
 
virtual void Transmit (u8 *dat, u16 len)=0
 

Private 属性

UART_HandleTypeDef * huart
 
uint32_t Timeout
 

额外继承的成员函数

- Protected 属性 继承自 bsp_ModBus_Tx
u8 ID
 器件ID 更多...
 

详细描述

STM32用串口的ModBus发送器

在文件 bsp_ModBus_STM32.h45 行定义.

构造及析构函数说明

◆ bsp_ModBus_STM32()

bsp_ModBus_STM32::bsp_ModBus_STM32 ( UART_HandleTypeDef *  huart,
u8  ID,
uint32_t  Timeout 
)
inline

在文件 bsp_ModBus_STM32.h47 行定义.

成员函数说明

◆ Transmit()

virtual void bsp_ModBus_STM32::Transmit ( u8 dat,
u16  len 
)
inlineprotectedvirtual

实现了 bsp_ModBus_Tx.

在文件 bsp_ModBus_STM32.h51 行定义.

类成员变量说明

◆ huart

UART_HandleTypeDef* bsp_ModBus_STM32::huart
private

在文件 bsp_ModBus_STM32.h54 行定义.

◆ Timeout

uint32_t bsp_ModBus_STM32::Timeout
private

在文件 bsp_ModBus_STM32.h55 行定义.


该类的文档由以下文件生成: