Go to the source code of this file.
#define Mio_PortIsValid | ( | mio_port | ) | ((unsigned)(mio_port) <= Mio_Port_Last) |
Check if Mio_Port is valid.
#define Mio_PortIsInvalid | ( | mio_port | ) | ((unsigned)(mio_port) > Mio_Port_Last) |
Check if MioPort is invalid.
#define Mio_PortModeIsValid | ( | mio_port_mode | ) | ((unsigned)(mio_port_mode) <= Mio_PortMode_Last) |
Check if Mio_PortMode is valid.
#define Mio_PortModeIsInvalid | ( | mio_port_mode | ) | ((unsigned)(mio_port_mode) > Mio_PortMode_Last) |
Check if Mio_PortMode is invalid.
#define Mio_TaskTypeIsValid | ( | mio_task_type | ) | ((unsigned)(mio_task_type) <= Mio_TaskType_Last) |
Check if Mio_TaskType is valid.
#define Mio_TaskTypeIsInvalid | ( | mio_task_type | ) | ((unsigned)(mio_task_type) > Mio_TaskType_Last) |
Check if MioTaskType is invalid.
#define Mio_TaskMaxTaskId 8 |
Max number of simultaneous MIO tasks.
#define Mio_TaskIdIsValid | ( | mio_task_id | ) | ((unsigned)(mio_task_id) <= Mio_TaskMaxTaskId) |
Check if MIO task id is valid.
#define Mio_TaskIdIsInvalid | ( | mio_task_id | ) | ((unsigned)(mio_task_id) > Mio_TaskMaxTaskId) |
Check if MIO task id is invalid.
#define Mio_PWM_DISABLE 0 |
Disable PWM subchannel. The corresponding Mio_Port can be used for other things.
#define Mio_PWM_ENABLE 0x01 |
Enable PWM subchannel.
#define Mio_PWM_POL_0 0 |
Polatiry 0. First halfperiod of PWM signal is 0.
#define Mio_PWM_POL_1 0x02 |
Polarity 1. First halfperiod of PWM signal is 1.
#define Mio_PWM_IDLE 0 |
PWM input measurement is idle (not measuring).
#define Mio_PWM_ACTIVE 0x04 |
PWM input measurement is active.
#define Mio_RcIsValid | ( | code | ) | ((unsigned)(code) <= Mio_Rc_Last) |
Check if MioResultCode is valid.
#define Mio_RcIsInvalid | ( | code | ) | ((unsigned)(code) > Mio_Rc_Last) |
Check if MioResultCode is invalid.
#define Mio_MessageMaxPayloadSize 28 |
Max message payload size in bytes.
#define Mio_CommunicationSpeed 125000 |
For internal use only.
MIO <--> host communication speed in bps
#define Mio_HostMsgIdIsValid | ( | msg_id | ) | ((unsigned)(msg_id) <= Mio_HostMsgId_Last) |
For internal use only.
Check if Mio_HostMsgId is valid
#define Mio_HostMsgIdIsInvalid | ( | msg_id | ) | ((unsigned)(msg_id) > Mio_HostMsgId_Last) |
For internal use only.
Check if Mio_HostMsgId is invalid
#define Mio_MioMsgIdIsValid | ( | msg_id | ) | ((unsigned)(msg_id) <= Mio_MioMsgId_Last) |
For internal use only.
Check if Mio_MioMsgId is valid
#define Mio_MioMsgIdIsInvalid | ( | msg_id | ) | ((unsigned)(msg_id) > Mio_MioMsgId_Last) |
For internal use only.
Check if Mio_MioMsgId is invalid
#define Mio_CpuPortIsValid | ( | mio_cpu_port | ) | ((unsigned)(mio_cpu_port) <= Mio_CpuPort_Last) |
For internal use only.
Check if Mio_CpuPort is valid
#define Mio_CpuPortIsInvalid | ( | mio_cpu_port | ) | ((unsigned)(mio_cpu_port) > Mio_CpuPort_Last) |
For internal use only.
Check if Mio_CpuPort is invalid
enum Mio_Port |
Physical ports on the MIO board.
enum Mio_PortMode |
Port mode for physical ports on the MIO board.
enum Mio_PortDigInOut |
enum Mio_TaskType |
enum Mio_DS18x20Type |
enum Mio_DS18x20Error |
DS18x20 error codes.
enum Mio_PWMMode |
enum Mio_PWMClockSpeed |
enum Mio_PWMInMode |
enum Mio_Rc |
Result & error codes returned by API functions.
enum Mio_HostMsgId |
For internal use only.
Message Id's for messages from host to MIO board
enum Mio_MioMsgId |
For internal use only.
Message Id's for messages from MIO board to host
enum Mio_CpuPort |
For internal use only.
CPU ports. Each port may have up to 8 I/O pins