-/* TODO: PĆejmenovat na sfunction_gio_in.c */
-
/* Copyright (C) 2013, 2014, 2015 Czech Technical University in Prague
*
* Authors:
* document, and communication of its contents is not permitted
* without prior written authorization.
*
- * File : sfunction_ain.c
+ * File : sfunction_gio_in.c
* Abstract:
* C-MEX S-function block for reading from RPP GPIO ports.
*
* trailer.c
*
* Compile with:
- * <matlabroot>/bin/mex sfunction_din.c
+ * <matlabroot>/bin/mex sfunction_gio_in.c
*/
/*
%YAML 1.2
---
-Name: Digital Input
+Name: Global Pourpose Digital Input
Category: IO blocks
Header: rpp/gio.h
-Mnemonic: DIN
+Mnemonic: GIOIN
Inputs:
Reads a value from a GPIO pin. The block supports GIOA, GIOB and NHET1 ports.
Any pin can be configured as tri-state, pull up or pull down.
- It is not allowed to read from one pin by using more then one DIN blocks.
- It is not allowed to use DIN and DOUT blocks together configured for one GPIO pin.
+ It is not allowed to read from one pin by using more then one GIOIN blocks.
+ It is not allowed to use GIOIN and DOUT blocks together configured for one GPIO pin.
Help: *desc
*/
-#define S_FUNCTION_NAME sfunction_din
+#define S_FUNCTION_NAME sfunction_gio_in
#include "header.c"
#define PARAM_NAME_PORT_TYPE "port_type"
* document, and communication of its contents is not permitted
* without prior written authorization.
*
- * File : sfunction_ain.c
+ * File : sfunction_gio_out.c
* Abstract:
* C-MEX S-function block for writting to RPP GPIO ports.
*
* trailer.c
*
* Compile with:
- * <matlabroot>/bin/mex sfunction_dout.c
+ * <matlabroot>/bin/mex sfunction_gio_out.c
*/
/*
%YAML 1.2
---
-Name: Digital Output
+Name: Global Pourpose Digital Output
Category: IO blocks
Header: rpp/gio.h
-Mnemonic: DOUT
+Mnemonic: GIOOUT
Inputs:
- { name: "Digital Output value", type: "bool" }
when the GPIO module is initialized and stays there until the first
block execution.
- It is not allowed to write to one pin by using more then one DOUT blocks.
- It is not allowed to use DOUT and DIN blocks on one GPIO pin.
+ It is not allowed to write to one pin by using more then one GIOOUT blocks.
+ It is not allowed to use GIOOUT and DIN blocks on one GPIO pin.
Help: *desc
*/
-#define S_FUNCTION_NAME sfunction_dout
+#define S_FUNCTION_NAME sfunction_gio_out
#include "header.c"
#define PARAM_NAME_PORT_TYPE "port_type"
%% document, and communication of its contents is not permitted
%% without prior written authorization.
%%
-%% File : sfunction_din.tlc
+%% File : sfunction_gio_in.tlc
%% Abstract:
%% TLC file for inlining RPP digital input block.
%%
%% Outputs() : rtw_tlc.pdf p. 281
-%implements sfunction_din "C"
+%implements sfunction_gio_in "C"
%include "common.tlc"
%% Ensure required header files are included
%<RppCommonBlockTypeSetup(block, system)>
%<LibAddToCommonIncludes("rpp/rpp.h")>
- %assign ::rpp_din_present = 1
+ %assign ::rpp_gio_in_present = 1
%endfunction
%% document, and communication of its contents is not permitted
%% without prior written authorization.
%%
-%% File : sfunction_dout.tlc
+%% File : sfunction_gio_out.tlc
%% Abstract:
%% TLC file for inlining RPP digital output block.
%%
%% Outputs() : rtw_tlc.pdf p. 281
-%implements sfunction_dout "C"
+%implements sfunction_gio_out "C"
%include "common.tlc"
%% Ensure required header files are included
%<RppCommonBlockTypeSetup(block, system)>
%<LibAddToCommonIncludes("rpp/rpp.h")>
- %assign ::rpp_dout_present = 1
+ %assign ::rpp_gio_out_present = 1
%endfunction