Component: MIAC Advanced (MIAC: Addon Modules)

From Flowcode Help
Jump to navigationJump to search


Author Matrix TSL
Version 1.0 (Release)
Category MIAC: Addon Modules


Image 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

UINT


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

BYTE


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

BYTE


SPI_Get_Char

No additional information


Parameters

This macro has no parameters


Return value

BYTE


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

BYTE


Sensor_Read

No additional information


Parameters

BYTE Sensor
BYTE HiRes


Return value

INT


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

BYTE


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

BYTE


MI2C_Receive_Byte_Transaction

No additional information


Parameters

BYTE Device_ID
BYTE AddrH
BYTE AddrL


Return value

BYTE


DigitalOutput

Set a Terminal Output to High (Value=1) or Low (Value=0)

Parameters

BYTE Terminal
BYTE Value


Return value

BYTE


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

UINT


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

STRING


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

BYTE


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