主要内容

本页翻译不是最新的。点击此处可查看最新英文版本。

建模

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

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

模块

全部展开

GPIO Read读取 GPIO 引脚状态
GPIO Write设置 GPIO 引脚状态
Analog to Digital ConverterConvert analog signal on ADC input pin to digital signal
Audio OutSend processed audio samples to audio devices
Mic InRead audio sample from MEMS microphone available on the STMicroelectronics STM32F4–Discovery board
Hardware InterruptTrigger the downstream function-call subsystem from an interrupt service routine.

系统核心

Audio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Analog InputMeasure voltage of analog input pin
Digital ReadRead logical state of digital input pin
Digital Write设置数字输出引脚的逻辑状态
PWM OutputGenerate square wave on the specified output pin
SCI ReadRead N-by-1 array of data on UART
SCI WriteSend N-by-1 array of data to UART
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine (自 R2021a 起)

多媒体

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

通信

I2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register ReadRead data from SPI peripheral devices register
SPI Register WriteWrite data to registers of SPI peripheral devices
Modbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network (自 R2021b 起)
Modbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network (自 R2021b 起)
Modbus RS485 Server WriteServer device writes data to server device register over RS485 network (自 R2021b 起)
Modbus RS485 Server ReadServer device reads data from the server device register over RS485 network (自 R2021b 起)

网络

TCP ReceiveReceive data over TCP/IP network from remote host
TCP SendSend data over TCP/IP network to remote host
UDP ReceiveReceive UDP packets from UDP host
UDP SendSend UDP packets to UDP host

系统核心

Audio InputRead audio sample from audio devices on STMicroelectronics STM32F746G/STM32F769I–Discovery board
Analog InputMeasure voltage of analog input pin
Digital ReadRead logical state of digital input pin
Digital Write设置数字输出引脚的逻辑状态
PWM OutputGenerate square wave on the specified output pin
SCI ReadRead N-by-1 array of data on UART
SCI WriteSend N-by-1 array of data to UART
External InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine (自 R2021a 起)

多媒体

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

通信

I2C Controller ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Controller WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Controller TransferWrite data to and read data from SPI peripheral devices
SPI Register ReadRead data from SPI peripheral devices register
SPI Register WriteWrite data to registers of SPI peripheral devices
Modbus RS485 Client ReadClient device reads data from server device register(s) over RS485 network (自 R2021b 起)
Modbus RS485 Client WriteClient device writes data to server device register(s) over RS485 network (自 R2021b 起)
Modbus RS485 Server WriteServer device writes data to server device register over RS485 network (自 R2021b 起)
Modbus RS485 Server ReadServer device reads data from the server device register over RS485 network (自 R2021b 起)

网络

TCP ReceiveReceive data over TCP/IP network from remote host
TCP SendSend data over TCP/IP network to remote host
UDP ReceiveReceive UDP packets from UDP host
UDP SendSend UDP packets to UDP host

物联网

WiFi TCP ReceiveReceive TCP/IP packets from another TCP/IP host on internet network (自 R2021a 起)
WiFi TCP SendSend TCP/IP packets to another TCP/IP host on internet network (自 R2021a 起)
ThingSpeak ReadRead data stored in ThingSpeak channel (自 R2021a 起)
ThingSpeak WritePublish data to Internet of Things using ThingSpeak (自 R2021a 起)

传感器

HTS221 Humidity SensorMeasure relative humidity and temperature from HTS221 sensor (自 R2021b 起)
LIS3MDL Magnetometer SensorMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor (自 R2021b 起)
LPS22HB Pressure SensorMeasure barometric air pressure and temperature from LPS22HB sensor (自 R2021b 起)
LSM6DSL IMU SensorMeasure linear acceleration, angular rate, and temperature from LSM6DSL sensor (自 R2021b 起)

实用工具模块

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

主题

精选示例