Component: MIAC Advanced (MIAC: Addon Modules)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | MIAC: Addon Modules |
Contents
- 1 MIAC Advanced component
- 2 Examples
- 3 Downloadable macro reference
- 3.1 UART_ReceiveChar
- 3.2 PWM_Enable
- 3.3 MI2C_Send_Byte_Transaction
- 3.4 RTC_Read_Time
- 3.5 RTC_Set_Date
- 3.6 SPI_Uninit
- 3.7 MI2C_Stop
- 3.8 DAC_WriteChannels
- 3.9 UART_SendString
- 3.10 SPI_Init
- 3.11 RTC_Reg_Write
- 3.12 MI2C_Restart
- 3.13 LED_Control
- 3.14 RTC_Read_Date
- 3.15 SPI_Get_Char
- 3.16 UART_Initialize
- 3.17 SPI_Send_Char
- 3.18 MI2C_Transmit_Byte
- 3.19 Sensor_Read
- 3.20 MI2C_Init
- 3.21 MI2C_Receive_Byte
- 3.22 PWM_Disable
- 3.23 RTC_Reg_Read
- 3.24 MI2C_Receive_Byte_Transaction
- 3.25 DigitalOutput
- 3.26 DAC_Write
- 3.27 AnalogInput
- 3.28 Initialize
- 3.29 RTC_Get_Data
- 3.30 RTC_Set_Time
- 3.31 UART_ReceiveString
- 3.32 PWM_SetDuty
- 3.33 MI2C_Start
- 3.34 DigitalInput
- 3.35 UART_SendChar
- 4 Simulation macro reference
- 5 Property reference
MIAC Advanced component
Advanced Addon for MIAC System
Examples
No additional examples
Downloadable macro reference
UART_ReceiveChar
No additional information
Parameters
- BYTE Timeout
Return value
PWM_Enable
Enable the PWM on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
Return value
- This call does not return a value
MI2C_Send_Byte_Transaction
No additional information
Parameters
- BYTE Device_ID
- BYTE AddrH
- BYTE AddrL
- BYTE Data
Return value
- This call does not return a value
RTC_Read_Time
No additional information
Parameters
- BYTE HMS
Return value
RTC_Set_Date
No additional information
Parameters
- BYTE Day
- BYTE Month
- BYTE Year
Return value
- This call does not return a value
SPI_Uninit
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
MI2C_Stop
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
DAC_WriteChannels
Wrtie values to both DAC Channels
Parameters
- INT ChannelA
- INT ChannelB
Return value
- This call does not return a value
UART_SendString
No additional information
Parameters
- <- STRING Text
- This parameter may be returned back to the caller
Return value
- This call does not return a value
SPI_Init
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
RTC_Reg_Write
No additional information
Parameters
- BYTE Reg
- BYTE Value
Return value
- This call does not return a value
MI2C_Restart
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
LED_Control
Sets the indicator LED On (State=1) or Off (State=0)
Parameters
- BYTE State
Return value
- This call does not return a value
RTC_Read_Date
No additional information
Parameters
- BYTE DMY
Return value
SPI_Get_Char
No additional information
Parameters
- This macro has no parameters
Return value
UART_Initialize
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
SPI_Send_Char
No additional information
Parameters
- BYTE Char
Return value
- This call does not return a value
MI2C_Transmit_Byte
No additional information
Parameters
- BYTE Data
Return value
Sensor_Read
No additional information
Parameters
- BYTE Sensor
- BYTE HiRes
Return value
MI2C_Init
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
MI2C_Receive_Byte
No additional information
Parameters
- BYTE Last
Return value
PWM_Disable
Disable the PWM on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
Return value
- This call does not return a value
RTC_Reg_Read
No additional information
Parameters
- BYTE Reg
Return value
MI2C_Receive_Byte_Transaction
No additional information
Parameters
- BYTE Device_ID
- BYTE AddrH
- BYTE AddrL
Return value
DigitalOutput
Set a Terminal Output to High (Value=1) or Low (Value=0)
Parameters
- BYTE Terminal
- BYTE Value
Return value
DAC_Write
No additional information
Parameters
- BYTE Channel
- INT Value
Return value
- This call does not return a value
AnalogInput
Read the ADC value of a Terminal
Returns 12 bit ADC reading
Parameters
- BYTE Terminal
- Terminal number to be read
Return value
Initialize
Forces a software reset on the module
Parameters
- This macro has no parameters
Return value
- This call does not return a value
RTC_Get_Data
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
RTC_Set_Time
No additional information
Parameters
- BYTE Hour
- BYTE Min
- BYTE Sec
Return value
- This call does not return a value
UART_ReceiveString
No additional information
Parameters
- BYTE Timeout
- BYTE NumBytes
Return value
PWM_SetDuty
Sets the PWM Duty cycle on Channel 1 or 2
Parameters
- BYTE Channel
- PWM Channel 1 or 2
- BYTE Duty
- Duty cycle (8 bit value)
Return value
- This call does not return a value
MI2C_Start
No additional information
Parameters
- This macro has no parameters
Return value
- This call does not return a value
DigitalInput
Read the value of a terminal
Parameters
- BYTE Terminal
Return value
UART_SendChar
No additional information
Parameters
- UINT Character
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Module Type
This property is of type Fixed list of ints and can be referenced with the variable name MODULE_TYPE.
No additional information
Module Address
This property is of type Fixed list of ints and can be referenced with the variable name ORDINAL.
No additional information
Period Overflow
This property is of type Unsigned integer and can be referenced with the variable name PERIOD.
No additional information
Prescaler
This property is of type Fixed list of ints and can be referenced with the variable name PRESCALER.
No additional information
Frequency (KHz)
This property is of type Floating point and can be referenced with the variable name PWM_FREQ.
No additional information
Period (uS)
This property is of type Floating point and can be referenced with the variable name PWM_PERIOD.
No additional information
Baud Rate
This property is of type Unsigned integer and can be referenced with the variable name BAUD1.
No additional information
Data Bits
This property is of type Fixed list of ints and can be referenced with the variable name BITS1.
No additional information
Return Type
This property is of type Fixed list of ints and can be referenced with the variable name RET1.
No additional information
Echo
This property is of type Fixed list of ints and can be referenced with the variable name ECHO1.
No additional information
Flow Control
This property is of type Fixed list of ints and can be referenced with the variable name FLOW1.
No additional information
Rate
This property is of type Fixed list of ints and can be referenced with the variable name SPI_RATE.
Prescale option selector
Clock Polarity
This property is of type Fixed list of ints and can be referenced with the variable name CKP.
Clock Polarity setting, inactive (idle) state
Clock Phase
This property is of type Fixed list of ints and can be referenced with the variable name CKE.
Clock Phase (data change edge) selection
Sample Point
This property is of type Fixed list of ints and can be referenced with the variable name SMP.
Data bit read sample point
Baud Select
This property is of type Fixed list of ints and can be referenced with the variable name I2C_BAUD.
Baud rate option selector
Slew Rate Control
This property is of type Fixed list of ints and can be referenced with the variable name I2C_SRC.
Slew Rate Control Enabled or Disabled
SMBus Inputs
This property is of type Fixed list of ints and can be referenced with the variable name I2C_SMB.
When Enabled input logic thresholds are compliant with SMBus specification