Changes between Version 6 and Version 7 of spec/Spi
- Timestamp:
- Oct 8, 2020, 11:16:21 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
spec/Spi
v6 v7 11 11 * API一覧 12 12 13 ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =|| 14 || [#Spi_Init Spi_Init] || 0|| 0x00|| 15 || [#Spi_DeInit Spi_DeInit] || 1|| 0x01|| 16 || [#Spi_WriteIB Spi_WriteIB] || 2|| 0x02|| 17 || [#Spi_AsyncTransmit Spi_AsyncTransmit] || 3|| 0x03|| 18 || [#Spi_ReadIB Spi_ReadIB] || 4|| 0x04|| 19 || [#Spi_SetupEB Spi_SetupEB] || 5|| 0x05|| 20 || [#Spi_GetStatus Spi_GetStatus] || 6|| 0x06|| 21 || [#Spi_GetJobResult Spi_GetJobResult] || 7|| 0x07|| 22 || [#Spi_GetSequenceResult Spi_GetSequenceResult] || 8|| 0x08|| 23 || [#Spi_GetVersionInfo Spi_GetVersionInfo] || 9|| 0x09|| 24 || [#Spi_SyncTransmit Spi_SyncTransmit] || 10|| 0x0A|| 25 || [#Spi_GetHWUnitStatus Spi_GetHWUnitStatus] || 11|| 0x0B|| 26 || [#Spi_Cancel Spi_Cancel] || 12|| 0x0C|| 27 || [#Spi_SetAsyncMode Spi_SetAsyncMode] || 13|| 0x0D|| 28 || [#Spi_MainFunction_Handling Spi_MainFunction_Handling] || 16|| 0x10|| 29 30 * コンフィギュレーション一覧 31 * [#SpiDriver SpiDriver] 32 * [#SpiMaxChannel SpiMaxChannel] 33 * [#SpiMaxJob SpiMaxJob] 34 * [#SpiMaxSequence SpiMaxSequence] 35 * [#SpiChannel SpiChannel] 36 * [#SpiChannelId SpiChannelId] 37 * [#SpiChannelType SpiChannelType] 38 * [#SpiDataWidth SpiDataWidth] 39 * [#SpiDefaultData SpiDefaultData] 40 * [#SpiEbMaxLength SpiEbMaxLength] 41 * [#SpiIbNBuffers SpiIbNBuffers] 42 * [#SpiTransferStart SpiTransferStart] 43 * [#SpiDemEventParameterRefs SpiDemEventParameterRefs] 44 * [#SPI_E_HARDWARE_ERROR SPI_E_HARDWARE_ERROR] 45 * [#SpiExternalDevice SpiExternalDevice] 46 * [#SpiBaudrate SpiBaudrate] 47 * [#SpiCsIdentifier SpiCsIdentifier] 48 * [#SpiCsPolarity SpiCsPolarity] 49 * [#SpiCsSelection SpiCsSelection] 50 * [#SpiDataShiftEdge SpiDataShiftEdge] 51 * [#SpiEnableCs SpiEnableCs] 52 * [#SpiHwUnit SpiHwUnit] 53 * [#SpiShiftClockIdleLevel SpiShiftClockIdleLevel] 54 * [#SpiTimeClk2Cs SpiTimeClk2Cs] 55 * [#SpiJob SpiJob] 56 * [#SpiHwUnitSynchronous SpiHwUnitSynchronous] 57 * [#SpiJobEndNotification SpiJobEndNotification] 58 * [#SpiJobId SpiJobId] 59 * [#SpiJobPriority SpiJobPriority] 60 * [#SpiDeviceAssignment SpiDeviceAssignment] 61 * [#SpiChannelList SpiChannelList] 62 * [#SpiChannelIndex SpiChannelIndex] 63 * [#SpiChannelAssignment SpiChannelAssignment] 64 * [#SpiSequence SpiSequence] 65 * [#SpiInterruptibleSequence SpiInterruptibleSequence] 66 * [#SpiSeqEndNotification SpiSeqEndNotification] 67 * [#SpiSequenceId SpiSequenceId] 68 * [#SpiJobAssignment SpiJobAssignment] 69 * [#SpiGeneral SpiGeneral] 70 * [#SpiCancelApi SpiCancelApi] 71 * [#SpiChannelBuffersAllowed SpiChannelBuffersAllowed] 72 * [#SpiDevErrorDetect SpiDevErrorDetect] 73 * [#SpiHwStatusApi SpiHwStatusApi] 74 * [#SpiInterruptibleSeqAllowed SpiInterruptibleSeqAllowed] 75 * [#SpiLevelDelivered SpiLevelDelivered] 76 * [#SpiSupportConcurrentSyncTransmit SpiSupportConcurrentSyncTransmit] 77 * [#SpiVersionInfoApi SpiVersionInfoApi] 78 * [#SpiPublishedInformation SpiPublishedInformation] 79 * [#SpiMaxHwUnit SpiMaxHwUnit] 13 ||= API =||= ID[[BR]][Dec] =||= ID[[BR]][Hex] =||= R4.0.3 =||= R4.2.2 =|| 14 || [#Spi_Init Spi_Init] || 0|| 0x00|| ○ || ○ || 15 || [#Spi_DeInit Spi_DeInit] || 1|| 0x01|| ○ || ○ || 16 || [#Spi_WriteIB Spi_WriteIB] || 2|| 0x02|| ○ || ○ || 17 || [#Spi_AsyncTransmit Spi_AsyncTransmit] || 3|| 0x03|| ○ || ○ || 18 || [#Spi_ReadIB Spi_ReadIB] || 4|| 0x04|| ○ || ○ || 19 || [#Spi_SetupEB Spi_SetupEB] || 5|| 0x05|| ○ || ○ || 20 || [#Spi_GetStatus Spi_GetStatus] || 6|| 0x06|| ○ || ○ || 21 || [#Spi_GetJobResult Spi_GetJobResult] || 7|| 0x07|| ○ || ○ || 22 || [#Spi_GetSequenceResult Spi_GetSequenceResult] || 8|| 0x08|| ○ || ○ || 23 || [#Spi_GetVersionInfo Spi_GetVersionInfo] || 9|| 0x09|| ○ || ○ || 24 || [#Spi_SyncTransmit Spi_SyncTransmit] || 10|| 0x0A|| ○ || ○ || 25 || [#Spi_GetHWUnitStatus Spi_GetHWUnitStatus] || 11|| 0x0B|| ○ || ○ || 26 || [#Spi_Cancel Spi_Cancel] || 12|| 0x0C|| ○ || ○ || 27 || [#Spi_SetAsyncMode Spi_SetAsyncMode] || 13|| 0x0D|| ○ || ○ || 28 || [#Spi_MainFunction_Handling Spi_MainFunction_Handling] || 16|| 0x10|| ○ || ○ || 29 || [#Spi_JobEndNotification Spi_JobEndNotification] || --|| --|| ○ || ○ || 30 || [#Spi_SeqEndNotification Spi_SeqEndNotification] || --|| --|| ○ || ○ || 31 32 * コンフィギュレーション一覧(R4.0.3 / R4.2.2) 33 * [#SpiDemEventParameterRefs SpiDemEventParameterRefs] (-/○) 34 * [#SPI_E_HARDWARE_ERROR SPI_E_HARDWARE_ERROR] (-/○) 35 * [#SpiDriver SpiDriver] (○/○) 36 * [#SpiMaxChannel SpiMaxChannel] (○/○) 37 * [#SpiMaxJob SpiMaxJob] (○/○) 38 * [#SpiMaxSequence SpiMaxSequence] (○/○) 39 * [#SpiChannel SpiChannel] (○/○) 40 * [#SpiChannelId SpiChannelId] (○/○) 41 * [#SpiChannelType SpiChannelType] (○/○) 42 * [#SpiDataWidth SpiDataWidth] (○/○) 43 * [#SpiDefaultData SpiDefaultData] (○/○) 44 * [#SpiEbMaxLength SpiEbMaxLength] (○/○) 45 * [#SpiIbNBuffers SpiIbNBuffers] (○/○) 46 * [#SpiTransferStart SpiTransferStart] (○/○) 47 * [#SpiDemEventParameterRefs2 SpiDemEventParameterRefs] (○/-) 48 * [#SPI_E_HARDWARE_ERROR2 SPI_E_HARDWARE_ERROR] (○/-) 49 * [#SpiExternalDevice SpiExternalDevice] (○/○) 50 * [#SpiBaudrate SpiBaudrate] (○/○) 51 * [#SpiCsIdentifier SpiCsIdentifier] (○/○) 52 * [#SpiCsPolarity SpiCsPolarity] (○/○) 53 * [#SpiCsSelection SpiCsSelection] (○/○) 54 * [#SpiDataShiftEdge SpiDataShiftEdge] (○/○) 55 * [#SpiEnableCs SpiEnableCs] (○/○) 56 * [#SpiHwUnit SpiHwUnit] (○/○) 57 * [#SpiShiftClockIdleLevel SpiShiftClockIdleLevel] (○/○) 58 * [#SpiTimeClk2Cs SpiTimeClk2Cs] (○/○) 59 * [#SpiJob SpiJob] (○/○) 60 * [#SpiHwUnitSynchronous SpiHwUnitSynchronous] (○/○) 61 * [#SpiJobEndNotification SpiJobEndNotification] (○/○) 62 * [#SpiJobId SpiJobId] (○/○) 63 * [#SpiJobPriority SpiJobPriority] (○/○) 64 * [#SpiDeviceAssignment SpiDeviceAssignment] (○/○) 65 * [#SpiChannelList SpiChannelList] (○/○) 66 * [#SpiChannelIndex SpiChannelIndex] (○/○) 67 * [#SpiChannelAssignment SpiChannelAssignment] (○/○) 68 * [#SpiSequence SpiSequence] (○/○) 69 * [#SpiInterruptibleSequence SpiInterruptibleSequence] (○/○) 70 * [#SpiSeqEndNotification SpiSeqEndNotification] (○/○) 71 * [#SpiSequenceId SpiSequenceId] (○/○) 72 * [#SpiJobAssignment SpiJobAssignment] (○/○) 73 * [#SpiGeneral SpiGeneral] (○/○) 74 * [#SpiCancelApi SpiCancelApi] (○/○) 75 * [#SpiChannelBuffersAllowed SpiChannelBuffersAllowed] (○/○) 76 * [#SpiDevErrorDetect SpiDevErrorDetect] (○/○) 77 * [#SpiHwStatusApi SpiHwStatusApi] (○/○) 78 * [#SpiInterruptibleSeqAllowed SpiInterruptibleSeqAllowed] (○/○) 79 * [#SpiLevelDelivered SpiLevelDelivered] (○/○) 80 * [#SpiMainFunctionPeriod SpiMainFunctionPeriod] (-/○) 81 * [#SpiSupportConcurrentSyncTransmit SpiSupportConcurrentSyncTransmit] (○/○) 82 * [#SpiUserCallbackHeaderFile SpiUserCallbackHeaderFile] (-/○) 83 * [#SpiVersionInfoApi SpiVersionInfoApi] (○/○) 84 * [#SpiPublishedInformation SpiPublishedInformation] (○/○) 85 * [#SpiMaxHwUnit SpiMaxHwUnit] (○/○) 80 86 81 87 * エラーコード一覧 82 * "--"は[wiki:spec _DiagnosticEventManagerDem]により決定される83 84 ||= エラーコード =||= Dec =||= Hex =|| 85 || SPI_E_PARAM_CHANNEL || 10|| 0x0A|| 86 || SPI_E_PARAM_JOB || 11|| 0x0B|| 87 || SPI_E_PARAM_SEQ || 12|| 0x0C|| 88 || SPI_E_PARAM_LENGTH || 13|| 0x0D|| 89 || SPI_E_PARAM_UNIT || 14|| 0x0E|| 90 || SPI_E_PARAM_POINTER || 16|| 0x10|| 91 || SPI_E_UNINIT || 26|| 0x1A|| 92 || SPI_E_SEQ_PENDING || 42|| 0x2A|| 93 || SPI_E_SEQ_IN_PROCESS || 58|| 0x3A|| 94 || SPI_E_ALREADY_INITIALIZED || 74|| 0x4A|| 95 || SPI_E_HARDWARE_ERROR || --|| --|| 88 * "--"は[wiki:spec/Dem Dem]により決定される 89 90 ||= エラーコード =||= Dec =||= Hex =||= R4.0.3 =||= R4.2.2 =|| 91 || SPI_E_PARAM_CHANNEL || 10|| 0x0A|| ○ || ○ || 92 || SPI_E_PARAM_JOB || 11|| 0x0B|| ○ || ○ || 93 || SPI_E_PARAM_SEQ || 12|| 0x0C|| ○ || ○ || 94 || SPI_E_PARAM_LENGTH || 13|| 0x0D|| ○ || ○ || 95 || SPI_E_PARAM_UNIT || 14|| 0x0E|| ○ || ○ || 96 || SPI_E_PARAM_POINTER || 16|| 0x10|| ○ || ○ || 97 || SPI_E_UNINIT || 26|| 0x1A|| ○ || ○ || 98 || SPI_E_SEQ_PENDING || 42|| 0x2A|| ○ || ○ || 99 || SPI_E_SEQ_IN_PROCESS || 58|| 0x3A|| ○ || ○ || 100 || SPI_E_ALREADY_INITIALIZED || 74|| 0x4A|| ○ || ○ || 101 || SPI_E_HARDWARE_ERROR || --|| --|| ○ || ○ || 96 102 97 103 ---- … … 111 117 == Spi_WriteIB == 112 118 {{{ 113 Std_ReturnType Spi_WriteIB(Spi_ChannelType Channel, const Spi_DataType* DataBufferPtr) 119 R4.0.3: Std_ReturnType Spi_WriteIB(Spi_ChannelType Channel, const Spi_DataType* DataBufferPtr) 120 R4.2.2: Std_ReturnType Spi_WriteIB(Spi_ChannelType Channel, const Spi_DataBufferType* DataBufferPtr) 114 121 }}} 115 122 … … 121 128 == Spi_ReadIB == 122 129 {{{ 123 Std_ReturnType Spi_ReadIB(Spi_ChannelType Channel, Spi_DataType* DataBufferPointer) 130 R4.0.3: Std_ReturnType Spi_ReadIB(Spi_ChannelType Channel, Spi_DataType* DataBufferPointer) 131 R4.2.2: Std_ReturnType Spi_ReadIB(Spi_ChannelType Channel, Spi_DataBufferType* DataBufferPointer) 124 132 }}} 125 133 126 134 == Spi_SetupEB == 127 135 {{{ 128 Std_ReturnType Spi_SetupEB(Spi_ChannelType Channel, const Spi_DataType* SrcDataBufferPtr, Spi_DataType* DesDataBufferPtr, Spi_NumberOfDataType Length) 136 R4.0.3: Std_ReturnType Spi_SetupEB(Spi_ChannelType Channel, const Spi_DataType* SrcDataBufferPtr, Spi_DataType* DesDataBufferPtr, Spi_NumberOfDataType Length) 137 R4.2.2: Std_ReturnType Spi_SetupEB(Spi_ChannelType Channel, const Spi_DataBufferType* SrcDataBufferPtr, Spi_DataBufferType* DesDataBufferPtr, Spi_NumberOfDataType Length) 129 138 }}} 130 139 … … 174 183 }}} 175 184 185 == Spi_JobEndNotification == 186 {{{ 187 void (*Spi_JobEndNotification)(void) 188 }}} 189 190 == Spi_SeqEndNotification == 191 {{{ 192 void (*Spi_SeqEndNotification)(void) 193 }}} 194 176 195 ---- 177 196 178 197 = コンフィギュレーション仕様 = 179 198 199 == SpiDemEventParameterRefs == 200 {{{ 201 /AUTOSAR/EcucDefs/Spi/SpiDemEventParameterRefs 202 }}} 203 * 型:Container 204 * 多重度:0..1 205 206 == SPI_E_HARDWARE_ERROR == 207 {{{ 208 /AUTOSAR/EcucDefs/Spi/SpiDemEventParameterRefs/SPI_E_HARDWARE_ERROR 209 }}} 210 * 型:Reference 211 * 多重度:0..1 212 * 参照先:{{{/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter}}} 213 180 214 == SpiDriver == 181 215 {{{ … … 191 225 * 型:IntegerParam 192 226 * 多重度:0..1 227 * 上限値:255 228 * 下限値:0 193 229 194 230 == SpiMaxJob == … … 198 234 * 型:IntegerParam 199 235 * 多重度:0..1 236 * 上限値:65535 237 * 下限値:0 200 238 201 239 == SpiMaxSequence == … … 205 243 * 型:IntegerParam 206 244 * 多重度:0..1 245 * 上限値:255 246 * 下限値:0 207 247 208 248 == SpiChannel == … … 219 259 * 型:IntegerParam 220 260 * 多重度:1 261 * 上限値:255 262 * 下限値:0 221 263 222 264 == SpiChannelType == … … 226 268 * 型:EnumerationParam 227 269 * 多重度:1 270 * 選択肢: 271 * EB 272 * IB 228 273 229 274 == SpiDataWidth == … … 233 278 * 型:IntegerParam 234 279 * 多重度:1 280 * 上限値:32 281 * 下限値:1 235 282 236 283 == SpiDefaultData == … … 240 287 * 型:IntegerParam 241 288 * 多重度:0..1 289 * 上限値:4294967295 290 * 下限値:0 242 291 243 292 == SpiEbMaxLength == … … 247 296 * 型:IntegerParam 248 297 * 多重度:1 298 * 上限値:65535 299 * 下限値:0 249 300 250 301 == SpiIbNBuffers == … … 254 305 * 型:IntegerParam 255 306 * 多重度:1 307 * 上限値:65535 308 * 下限値:0 256 309 257 310 == SpiTransferStart == … … 261 314 * 型:EnumerationParam 262 315 * 多重度:1 263 264 == SpiDemEventParameterRefs == 316 * 選択肢: 317 * LSB 318 * MSB 319 320 == SpiDemEventParameterRefs(2) == 265 321 {{{ 266 322 /AUTOSAR/EcucDefs/Spi/SpiDriver/SpiDemEventParameterRefs … … 269 325 * 多重度:0..1 270 326 271 == SPI_E_HARDWARE_ERROR ==327 == SPI_E_HARDWARE_ERROR(2) == 272 328 {{{ 273 329 /AUTOSAR/EcucDefs/Spi/SpiDriver/SpiDemEventParameterRefs/SPI_E_HARDWARE_ERROR … … 275 331 * 型:Reference 276 332 * 多重度:0..1 333 * 参照先:{{{/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter}}} 277 334 278 335 == SpiExternalDevice == … … 289 346 * 型:FloatParam 290 347 * 多重度:1 348 * 上限値:Inf 349 * 下限値:0 291 350 292 351 == SpiCsIdentifier == … … 303 362 * 型:EnumerationParam 304 363 * 多重度:1 364 * 選択肢: 365 * HIGH 366 * LOW 305 367 306 368 == SpiCsSelection == … … 310 372 * 型:EnumerationParam 311 373 * 多重度:0..1 374 * 選択肢: 375 * CS_VIA_GPIO 376 * CS_VIA_PERIPHERAL_ENGINE 377 * デフォルト値: 378 * R4.2.2:CS_VIA_PERIPHERAL_ENGINE 312 379 313 380 == SpiDataShiftEdge == … … 317 384 * 型:EnumerationParam 318 385 * 多重度:1 386 * 選択肢: 387 * LEADING 388 * TRAILING 319 389 320 390 == SpiEnableCs == … … 331 401 * 型:EnumerationParam 332 402 * 多重度:1 403 * 選択肢: 404 * CSIB0 405 * CSIB1 406 * CSIB2 407 * CSIB3 333 408 334 409 == SpiShiftClockIdleLevel == … … 338 413 * 型:EnumerationParam 339 414 * 多重度:1 415 * 選択肢: 416 * HIGH 417 * LOW 340 418 341 419 == SpiTimeClk2Cs == … … 345 423 * 型:FloatParam 346 424 * 多重度:1 425 * 上限値:1E-4 426 * 下限値:0 347 427 348 428 == SpiJob == … … 359 439 * 型:EnumerationParam 360 440 * 多重度:0..1 441 * 選択肢: 442 * ASYNCHRONOUS 443 * SYNCHRONOUS 361 444 362 445 == SpiJobEndNotification == … … 373 456 * 型:IntegerParam 374 457 * 多重度:1 458 * 上限値:65535 459 * 下限値:0 375 460 376 461 == SpiJobPriority == … … 380 465 * 型:IntegerParam 381 466 * 多重度:1 467 * 上限値:3 468 * 下限値:0 382 469 383 470 == SpiDeviceAssignment == … … 387 474 * 型:Reference 388 475 * 多重度:1 476 * 参照先:{{{/AUTOSAR/EcucDefs/Spi/SpiDriver/SpiExternalDevice}}} 389 477 390 478 == SpiChannelList == … … 401 489 * 型:IntegerParam 402 490 * 多重度:1 491 * 上限値:255 492 * 下限値:0 403 493 404 494 == SpiChannelAssignment == … … 408 498 * 型:Reference 409 499 * 多重度:1 500 * 参照先:{{{/AUTOSAR/EcucDefs/Spi/SpiDriver/SpiChannel}}} 410 501 411 502 == SpiSequence == … … 436 527 * 型:IntegerParam 437 528 * 多重度:1 529 * 上限値:255 530 * 下限値:0 438 531 439 532 == SpiJobAssignment == … … 443 536 * 型:Reference 444 537 * 多重度:1..* 538 * 参照先:{{{/AUTOSAR/EcucDefs/Spi/SpiDriver/SpiJob}}} 445 539 446 540 == SpiGeneral == … … 464 558 * 型:IntegerParam 465 559 * 多重度:1 560 * 上限値:2 561 * 下限値:0 466 562 467 563 == SpiDevErrorDetect == … … 492 588 * 型:IntegerParam 493 589 * 多重度:1 590 * 上限値:2 591 * 下限値:0 592 593 == SpiMainFunctionPeriod == 594 {{{ 595 /AUTOSAR/EcucDefs/Spi/SpiGeneral/SpiMainFunctionPeriod 596 }}} 597 * 型:FloatParam 598 * 多重度:0..1 599 * 上限値:1 600 * 下限値:1E-7 601 * デフォルト値:0.01 494 602 495 603 == SpiSupportConcurrentSyncTransmit == … … 500 608 * 多重度:1 501 609 610 == SpiUserCallbackHeaderFile == 611 {{{ 612 /AUTOSAR/EcucDefs/Spi/SpiGeneral/SpiUserCallbackHeaderFile 613 }}} 614 * 型:StringParam 615 * 多重度:0..* 616 502 617 == SpiVersionInfoApi == 503 618 {{{ … … 520 635 * 型:IntegerParam 521 636 * 多重度:1 637 * 上限値:18446744073709551615 638 * 下限値:0