9 | | {{{#!comment |
10 | | [執筆開始時削除エリア]ここから |
11 | | ※コメントごと削除してください |
12 | | }}} |
13 | | * '''本項目は、まだ執筆されていません''' |
14 | | * '''執筆して頂ける方は、本注意書きを削除の上、執筆をお願いします(詳しくは本Wikiのソースコードをご参照ください)''' |
15 | | * '''質問事項等がございましたら、[http://dev.toppers.jp/trac_user/ap/wiki/ Wikiトップページ]にあります[http://dev.toppers.jp/trac_user/ap/wiki/WikiStart#%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B%E5%85%88 問い合わせ先]までお願いします''' |
| 9 | = 概要 = |
| 10 | |
| 11 | * API一覧 |
| 12 | |
| 13 | ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =|| |
| 14 | || [#Eth_Init Eth_Init] || 1|| 0x01|| |
| 15 | || [#Eth_ControllerInit Eth_ControllerInit] || 2|| 0x02|| |
| 16 | || [#Eth_SetControllerMode Eth_SetControllerMode] || 3|| 0x03|| |
| 17 | || [#Eth_GetControllerMode Eth_GetControllerMode] || 4|| 0x04|| |
| 18 | || [#Eth_GetPhysAddr Eth_GetPhysAddr] || 8|| 0x08|| |
| 19 | || [#Eth_WriteMii Eth_WriteMii] || 5|| 0x05|| |
| 20 | || [#Eth_ReadMii Eth_ReadMii] || 6|| 0x06|| |
| 21 | || [#Eth_GetCounterState Eth_GetCounterState] || 7|| 0x07|| |
| 22 | || [#Eth_ProvideTxBuffer Eth_ProvideTxBuffer] || 9|| 0x09|| |
| 23 | || [#Eth_Transmit Eth_Transmit] || 10|| 0x0A|| |
| 24 | || [#Eth_Receive Eth_Receive] || 11|| 0x0B|| |
| 25 | || [#Eth_TxConfirmation Eth_TxConfirmation] || 12|| 0x0C|| |
| 26 | || [#Eth_GetVersionInfo Eth_GetVersionInfo] || 13|| 0x0D|| |
| 27 | || [#Eth_RxIrqHdlr_CtrlIdx Eth_RxIrqHdlr_<CtrlIdx>] || 16|| 0x10|| |
| 28 | || [#Eth_TxIrqHdlr_CtrlIdx Eth_TxIrqHdlr_<CtrlIdx>] || 17|| 0x11|| |
| 29 | |
| 30 | * コンフィギュレーション一覧 |
| 31 | * [#EthConfigSet EthConfigSet] |
| 32 | * [#EthCtrlConfig EthCtrlConfig] |
| 33 | * [#EthCtrlEnableMii EthCtrlEnableMii] |
| 34 | * [#EthCtrlEnableRxInterrupt EthCtrlEnableRxInterrupt] |
| 35 | * [#EthCtrlEnableTxInterrupt EthCtrlEnableTxInterrupt] |
| 36 | * [#EthCtrlIdx EthCtrlIdx] |
| 37 | * [#EthCtrlRxBufLenByte EthCtrlRxBufLenByte] |
| 38 | * [#EthCtrlTxBufLenByte EthCtrlTxBufLenByte] |
| 39 | * [#EthRxBufTotal EthRxBufTotal] |
| 40 | * [#EthTxBufTotal EthTxBufTotal] |
| 41 | * [#EthDemEventParameterRefs EthDemEventParameterRefs] |
| 42 | * [#ETH_E_ACCESS ETH_E_ACCESS] |
| 43 | * [#EthGeneral EthGeneral] |
| 44 | * [#EthDevErrorDetect EthDevErrorDetect] |
| 45 | * [#EthIndex EthIndex] |
| 46 | * [#EthMaxCtrlsSupported EthMaxCtrlsSupported] |
| 47 | * [#EthVersionInfoApi EthVersionInfoApi] |
| 48 | * [#EthVersionInfoApiMacro EthVersionInfoApiMacro] |
| 49 | |
| 50 | * エラーコード一覧 |
| 51 | * "--"は[wiki:spec_DiagnosticEventManager Dem]により決定される |
| 52 | |
| 53 | ||= エラーコード =||= Dec =||= Hex =|| |
| 54 | || ETH_E_INV_CTRL_IDX || 1|| 0x01|| |
| 55 | || ETH_E_NOT_INITIALIZED || 2|| 0x02|| |
| 56 | || ETH_E_INV_POINTER || 3|| 0x03|| |
| 57 | || ETH_E_INV_PARAM || 4|| 0x04|| |
| 58 | || ETH_E_INV_CONFIG || 5|| 0x05|| |
| 59 | || ETH_E_INV_MODE || 6|| 0x06|| |
| 60 | || ETH_E_ACCESS || --|| --|| |
| 61 | |
17 | | {{{#!comment |
18 | | [執筆開始時削除エリア]ここまで |
19 | | ※コメントごと削除してください |
20 | | }}} |
21 | | |
22 | | = 概要 = |
| 63 | |
| 64 | = API仕様 = |
| 65 | |
| 66 | == Eth_Init == |
| 67 | {{{ |
| 68 | void Eth_Init(const Eth_ConfigType* CfgPtr) |
| 69 | }}} |
| 70 | |
| 71 | == Eth_ControllerInit == |
| 72 | {{{ |
| 73 | Std_ReturnType Eth_ControllerInit(uint8 CtrlIdx, uint8 CfgIdx) |
| 74 | }}} |
| 75 | |
| 76 | == Eth_SetControllerMode == |
| 77 | {{{ |
| 78 | Std_ReturnType Eth_SetControllerMode(uint8 CtrlIdx, Eth_ModeType CtrlMode) |
| 79 | }}} |
| 80 | |
| 81 | == Eth_GetControllerMode == |
| 82 | {{{ |
| 83 | Std_ReturnType Eth_GetControllerMode(uint8 CtrlIdx, Eth_ModeType* CtrlModePtr) |
| 84 | }}} |
| 85 | |
| 86 | == Eth_GetPhysAddr == |
| 87 | {{{ |
| 88 | void Eth_GetPhysAddr(uint8 CtrlIdx, uint8* PhysAddrPtr) |
| 89 | }}} |
| 90 | |
| 91 | == Eth_WriteMii == |
| 92 | {{{ |
| 93 | void Eth_WriteMii(uint8 CtrlIdx, uint8 TrcvIdx, uint8 RegIdx, uint16 RegVal) |
| 94 | }}} |
| 95 | |
| 96 | == Eth_ReadMii == |
| 97 | {{{ |
| 98 | void Eth_ReadMii(uint8 CtrlIdx, uint8 TrcvIdx, uint8 RegIdx, uint16* RegValPtr) |
| 99 | }}} |
| 100 | |
| 101 | == Eth_GetCounterState == |
| 102 | {{{ |
| 103 | void Eth_GetCounterState(uint8 CtrlIdx, uint16 CtrOffs, uint32* CtrValPtr) |
| 104 | }}} |
| 105 | |
| 106 | == Eth_ProvideTxBuffer == |
| 107 | {{{ |
| 108 | BufReq_ReturnType Eth_ProvideTxBuffer(uint8 CtrlIdx, uint8* BufIdxPtr, Eth_DataType** BufPtr, uint16* LenBytePtr) |
| 109 | }}} |
| 110 | |
| 111 | == Eth_Transmit == |
| 112 | {{{ |
| 113 | Std_ReturnType Eth_Transmit(uint8 CtrlIdx, uint8 BufIdx, Eth_FrameType FrameType, boolean TxConfirmation, uint16 LenByte, uint8* PhysAddrPtr) |
| 114 | }}} |
| 115 | |
| 116 | == Eth_Receive == |
| 117 | {{{ |
| 118 | void Eth_Receive(uint8 CtrlIdx) |
| 119 | }}} |
| 120 | |
| 121 | == Eth_TxConfirmation == |
| 122 | {{{ |
| 123 | void Eth_TxConfirmation(uint8 CtrlIdx) |
| 124 | }}} |
| 125 | |
| 126 | == Eth_GetVersionInfo == |
| 127 | {{{ |
| 128 | void Eth_GetVersionInfo(Std_VersionInfoType* VersionInfoPtr) |
| 129 | }}} |
| 130 | |
| 131 | == Eth_RxIrqHdlr_<CtrlIdx> == |
| 132 | {{{ |
| 133 | void Eth_RxIrqHdlr_<CtrlIdx>(void) |
| 134 | }}} |
| 135 | |
| 136 | == Eth_TxIrqHdlr_<CtrlIdx> == |
| 137 | {{{ |
| 138 | void Eth_TxIrqHdlr_<CtrlIdx>(void) |
| 139 | }}} |
| 144 | |
| 145 | == EthConfigSet == |
| 146 | {{{ |
| 147 | /AUTOSAR/EcucDefs/Eth/EthConfigSet |
| 148 | }}} |
| 149 | * 型:Container |
| 150 | * 多重度:1 |
| 151 | |
| 152 | == EthCtrlConfig == |
| 153 | {{{ |
| 154 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig |
| 155 | }}} |
| 156 | * 型:Container |
| 157 | * 多重度:1..* |
| 158 | |
| 159 | == EthCtrlEnableMii == |
| 160 | {{{ |
| 161 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableMii |
| 162 | }}} |
| 163 | * 型:BooleanParam |
| 164 | * 多重度:1 |
| 165 | |
| 166 | == EthCtrlEnableRxInterrupt == |
| 167 | {{{ |
| 168 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableRxInterrupt |
| 169 | }}} |
| 170 | * 型:BooleanParam |
| 171 | * 多重度:1 |
| 172 | |
| 173 | == EthCtrlEnableTxInterrupt == |
| 174 | {{{ |
| 175 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlEnableTxInterrupt |
| 176 | }}} |
| 177 | * 型:BooleanParam |
| 178 | * 多重度:1 |
| 179 | |
| 180 | == EthCtrlIdx == |
| 181 | {{{ |
| 182 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlIdx |
| 183 | }}} |
| 184 | * 型:IntegerParam |
| 185 | * 多重度:1 |
| 186 | |
| 187 | == EthCtrlRxBufLenByte == |
| 188 | {{{ |
| 189 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlRxBufLenByte |
| 190 | }}} |
| 191 | * 型:IntegerParam |
| 192 | * 多重度:1 |
| 193 | |
| 194 | == EthCtrlTxBufLenByte == |
| 195 | {{{ |
| 196 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthCtrlTxBufLenByte |
| 197 | }}} |
| 198 | * 型:IntegerParam |
| 199 | * 多重度:1 |
| 200 | |
| 201 | == EthRxBufTotal == |
| 202 | {{{ |
| 203 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthRxBufTotal |
| 204 | }}} |
| 205 | * 型:IntegerParam |
| 206 | * 多重度:1 |
| 207 | |
| 208 | == EthTxBufTotal == |
| 209 | {{{ |
| 210 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthTxBufTotal |
| 211 | }}} |
| 212 | * 型:IntegerParam |
| 213 | * 多重度:1 |
| 214 | |
| 215 | == EthDemEventParameterRefs == |
| 216 | {{{ |
| 217 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthDemEventParameterRefs |
| 218 | }}} |
| 219 | * 型:Container |
| 220 | * 多重度:0..1 |
| 221 | |
| 222 | == ETH_E_ACCESS == |
| 223 | {{{ |
| 224 | /AUTOSAR/EcucDefs/Eth/EthConfigSet/EthCtrlConfig/EthDemEventParameterRefs/ETH_E_ACCESS |
| 225 | }}} |
| 226 | * 型:Reference |
| 227 | * 多重度:0..1 |
| 228 | |
| 229 | == EthGeneral == |
| 230 | {{{ |
| 231 | /AUTOSAR/EcucDefs/Eth/EthGeneral |
| 232 | }}} |
| 233 | * 型:Container |
| 234 | * 多重度:1 |
| 235 | |
| 236 | == EthDevErrorDetect == |
| 237 | {{{ |
| 238 | /AUTOSAR/EcucDefs/Eth/EthGeneral/EthDevErrorDetect |
| 239 | }}} |
| 240 | * 型:BooleanParam |
| 241 | * 多重度:1 |
| 242 | |
| 243 | == EthIndex == |
| 244 | {{{ |
| 245 | /AUTOSAR/EcucDefs/Eth/EthGeneral/EthIndex |
| 246 | }}} |
| 247 | * 型:IntegerParam |
| 248 | * 多重度:1 |
| 249 | |
| 250 | == EthMaxCtrlsSupported == |
| 251 | {{{ |
| 252 | /AUTOSAR/EcucDefs/Eth/EthGeneral/EthMaxCtrlsSupported |
| 253 | }}} |
| 254 | * 型:IntegerParam |
| 255 | * 多重度:1 |
| 256 | |
| 257 | == EthVersionInfoApi == |
| 258 | {{{ |
| 259 | /AUTOSAR/EcucDefs/Eth/EthGeneral/EthVersionInfoApi |
| 260 | }}} |
| 261 | * 型:BooleanParam |
| 262 | * 多重度:1 |
| 263 | |
| 264 | == EthVersionInfoApiMacro == |
| 265 | {{{ |
| 266 | /AUTOSAR/EcucDefs/Eth/EthGeneral/EthVersionInfoApiMacro |
| 267 | }}} |
| 268 | * 型:BooleanParam |
| 269 | * 多重度:1 |