Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C12832 FXOS8700Q LM75B MMA7660
IO.hpp
- Committer:
- co838_app56
- Date:
- 2016-02-23
- Revision:
- 0:2ac59c564ab0
- Child:
- 3:1ab88130bb9d
File content as of revision 0:2ac59c564ab0:
#pragma once
// Including sensors and outputs
#include "Input.h"
#include "FrdmK64f_AppShield_Input.hpp"
#include "FrdmK64f_AppShield_Output.h"
#include "FrdmK64f_Input.hpp"
#include "FrdmK64f_Output.h"
// Defining some types used to create an IO object
struct FrdmK64f
{
typedef FrdmK64f_Input< ::Input> Input; // If we want to use k64f only
struct Output { FrdmK64f_Output platform; }; //
struct AppShield
{
typedef FrdmK64f_AppShield_Input<FrdmK64f::Input> Input; // If we want to use k64f
struct Output { FrdmK64f_Output platform; FrdmK64f_AppShield_Output board; }; // with application shield
};
};
struct AppShield
{
typedef FrdmK64f_AppShield_Input< ::Input> Input; // If we want to use
struct Output { FrdmK64f_AppShield_Output board; }; // application shield only
};
/*
** IO Object
**
** Used to interact with the device
** input is an event manager
** output list les ouputs
*/
template <typename Platform> struct IO
{
static typename Platform::Input input;
static typename Platform::Output output;
};
template <typename Platform>
typename Platform::Input IO<Platform>::input;
template <typename Platform>
typename Platform::Output IO<Platform>::output;