主要内容

建模

R2026b
为硬件连接准备模型,添加模块以支持硬件协议

准备模型以使用 STMicroelectronics Discovery 板进行硬件连接,添加模块以支持硬件协议。

在以后的版本中将会删除对 STMicroelectronics® Discovery™ 板的支持。

您可以迁移使用 STM32F4-Discovery 库模块的模型以使用基于 STM32F4xx 的模块库中的模块。有关详细信息,请参阅将 STMicroelectronics STM32F4-Discovery 模块迁移到基于 STM32F4xx 的模块库和 STMCubeMX 工作流。

模块

全部展开

系统核心

Analog Input blockAnalog InputMeasure voltage of analog input pin
Digital Read blockDigital ReadRead logical state of digital input pin
Digital Write blockDigital WriteSet logical state of digital output pin
PWM Output blockPWM OutputGenerate square wave on the specified output pin
SCI Read blockSCI ReadRead N-by-1 array of data on UART
SCI Write blockSCI WriteSend N-by-1 array of data to UART
External Interrupt blockExternal InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine

多媒体

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board

通信

I2C Controller Read blockI2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller Transfer blockSPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register Read blockSPI Register ReadRead data from SPI peripheral devices register
SPI Register Write blockSPI Register WriteWrite data to registers of SPI peripheral devices
MODBUS RS485 Client ReadModbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
MODBUS RS485 Client WriteModbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
MODBUS RS485 Server WriteModbus RS485 Server WriteServer device writes data to server device register over RS485 network
MODBUS RS485 Server ReadModbus RS485 Server ReadServer device reads data from the server device register over RS485 network

网络

TCP Receive blockTCP ReceiveReceive data over TCP/IP network from remote host
TCP Send blockTCP SendSend data over TCP/IP network to remote host
UDP Receive blockUDP ReceiveReceive UDP packets from UDP host
UDP Send blockUDP SendSend UDP packets to UDP host

系统核心

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Digital Read blockDigital ReadRead logical state of digital input pin
Digital Write blockDigital WriteSet logical state of digital output pin
PWM Output blockPWM OutputGenerate square wave on the specified output pin
SCI Read blockSCI ReadRead N-by-1 array of data on UART
SCI Write blockSCI WriteSend N-by-1 array of data to UART
External Interrupt blockExternal InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine

多媒体

Audio Input blockAudio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Audio Output blockAudio OutputSend processed audio samples to audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board

通信

I2C Controller Read blockI2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller Write blockI2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller Transfer blockSPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register Read blockSPI Register ReadRead data from SPI peripheral devices register
SPI Register Write blockSPI Register WriteWrite data to registers of SPI peripheral devices
MODBUS RS485 Client ReadModbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network
MODBUS RS485 Client WriteModbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network
MODBUS RS485 Server WriteModbus RS485 Server WriteServer device writes data to server device register over RS485 network
MODBUS RS485 Server ReadModbus RS485 Server ReadServer device reads data from the server device register over RS485 network

网络

TCP Receive blockTCP ReceiveReceive data over TCP/IP network from remote host
TCP Send blockTCP SendSend data over TCP/IP network to remote host
UDP Receive blockUDP ReceiveReceive UDP packets from UDP host
UDP Send blockUDP SendSend UDP packets to UDP host

物联网

WiFi TCP Receive blockWiFi TCP ReceiveReceive TCP/IP packets from another TCP/IP host on internet network
WiFi TCP Send blockWiFi TCP SendSend TCP/IP packets to another TCP/IP host on internet network
ThingSpeak Read blockThingSpeak ReadRead data stored in ThingSpeak channel
ThingSpeak Write blockThingSpeak WritePublish data to Internet of Things using ThingSpeak

传感器

block icon for HTS221 Humidity SensorHTS221 Humidity SensorMeasure relative humidity and temperature from HTS221 sensor (自 R2025a 起)
block icon for LIS3MDL Magnetometer sensorLIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (自 R2025a 起)
block icon for LPS22HB Pressure SensorLPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor (自 R2025a 起)
LSM6DSL sensor blockLSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (自 R2025a 起)

实用工具模块

Byte Pack blockByte Pack将输入信号转换为 uint8 向量
Byte Unpack blockByte Unpack 将 uint8 向量转换为输入信号
Byte Reversal blockByte Reversal反转输入字中的字节顺序
Memory Copy blockMemory CopyCopy data from and to memory section

主题

精选示例