ccNOos  v0.0.0
Build Portable Microcontroller Applications!
io_device.c File Reference

IMS: ccNOos, Implementation for straight C More...

#include "io_device.h"
#include "execution_system.h"
Include dependency graph for io_device.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct devicedatastruct createDeviceStruct ()

Detailed Description

IMS: ccNOos, Implementation for straight C

Copyright 2021 InMechaSol, Inc

Licensed under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Notes: (.c includes .h) - for straight C or (.cpp includes .c which includes .h) - for C++ wrapped straight C Always compiled to a single compilation unit, either C or CPP, not both

Definition in file io_device.c.

Function Documentation

◆ createDeviceStruct()

struct devicedatastruct createDeviceStruct ( )

Definition at line 1 of file io_device.c.

32 {
33  struct devicedatastruct outstruct;
34  outstruct.devstate = devstate_init;
35  outstruct.newDataReadIn = ui8FALSE;
36  outstruct.triggerWriteOperation = ui8FALSE;
37  outstruct.inbuff.charbuff[0] = 0x00;
38  outstruct.outbuff.charbuff[0] = 0x00;
39  return outstruct;
40 }
#define ui8FALSE
Definition: version_config.h:190
enum devicestateenum devstate
Definition: io_device.h:65
@ devstate_init
Definition: io_device.h:42
the common data struct of io devices
Definition: io_device.h:62