/* * Copyright (C) 2008-2017 by TOPPERS Project * * 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改 * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する. * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー * スコード中に含まれていること. * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記 * の無保証規定を掲載すること. * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ * と. * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著 * 作権表示,この利用条件および下記の無保証規定を掲載すること. * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに * 報告すること. * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること. * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理 * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを * 免責すること. * * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的 * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ * の責任を負わない. * * @(#) $Id$ */ /* #[]# * #[<...>]# から #[]# で囲まれたコメントは編集しないでください * tecsmerge によるマージに使用されます * * 属性アクセスマクロ #_CAAM_# * name char_t* ATTR_name * typeKind int8_t ATTR_typeKind * bitSize int32_t ATTR_bitSize * b_const bool_t ATTR_b_const * b_volatile bool_t ATTR_b_volatile * * 呼び口関数 #_TCPF_# * call port: cTypeInfo signature: nTECSInfo_sTypeInfo context:task optional:true * bool_t is_cTypeInfo_joined() check if joined * ER cTypeInfo_getName( char_t* name, int_t max_len ); * void cTypeInfo_getNameLength( uint16_t* len ); * void cTypeInfo_getSize( uint32_t* size ); * void cTypeInfo_getKind( int8_t* kind ); * void cTypeInfo_getNType( int32_t* num ); * void cTypeInfo_getTypeInfo( int32_t ith, Descriptor( nTECSInfo_sTypeInfo )* desc ); * [ref_desc] * Descriptor( nTECSInfo_sTypeInfo ) cTypeInfo_refer_to_descriptor(); * Descriptor( nTECSInfo_sTypeInfo ) cTypeInfo_ref_desc() (same as above; abbreviated version); * * #[]# */ /* Put prototype declaration and/or variale definition here #_PAC_# */ #include #include "nTECSInfo_tTypeInfo_tecsgen.h" #ifndef E_OK #define E_OK 0 /* success */ #define E_ID (-18) /* illegal ID */ #endif /* entry port function #_TEPF_# */ /* #[]# eTypeInfo * entry port: eTypeInfo * signature: nTECSInfo_sTypeInfo * context: task * #[]# */ /* #[]# eTypeInfo_getName * name: eTypeInfo_getName * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getName * oneway: false * #[]# */ ER eTypeInfo_getName(CELLIDX idx, char_t* name, int_t max_len) { ER ercd = E_OK; CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { return(E_ID); } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ return(ercd); } /* #[]# eTypeInfo_getNameLength * name: eTypeInfo_getNameLength * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getNameLength * oneway: false * #[]# */ void eTypeInfo_getNameLength(CELLIDX idx, uint16_t* len) { CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { /* Write error processing code here */ } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ } /* #[]# eTypeInfo_getSize * name: eTypeInfo_getSize * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getSize * oneway: false * #[]# */ void eTypeInfo_getSize(CELLIDX idx, uint32_t* size) { CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { /* Write error processing code here */ } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ } /* #[]# eTypeInfo_getKind * name: eTypeInfo_getKind * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getKind * oneway: false * #[]# */ void eTypeInfo_getKind(CELLIDX idx, int8_t* kind) { CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { /* Write error processing code here */ } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ } /* #[]# eTypeInfo_getNType * name: eTypeInfo_getNType * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getNType * oneway: false * #[]# */ void eTypeInfo_getNType(CELLIDX idx, int32_t* num) { CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { /* Write error processing code here */ } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ } /* #[]# eTypeInfo_getTypeInfo * name: eTypeInfo_getTypeInfo * global_name: nTECSInfo_tTypeInfo_eTypeInfo_getTypeInfo * oneway: false * #[]# */ void eTypeInfo_getTypeInfo(CELLIDX idx, int32_t ith, Descriptor( nTECSInfo_sTypeInfo )* desc) { CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { /* Write error processing code here */ } /* end if VALID_IDX(idx) */ /* Put statements here #_TEFB_# */ } /* #[]# * これより下に非受け口関数を書きます * #[]#*/