User`s manual

RX62N Group, RX621 Group 4. Library Reference
6) R_BSC_GetStatus
Synopsis
Read the status registers of External Bus & SDRAM Controller.
Prototype
bool R_BSC_GetStatus(
uint8_t * data1,
// A pointer to the data1 storage location
uint16_t * data2,
// A pointer to the data2 storage location
uint8_t * data3
// A pointer to the data3 storage location
);
Description
Read the status registers of Bus & SDRAM Controller
[data1]
The status flags shall be stored according to register BERSR1 format as below.
Specify PDL_NO_PTR if this information is not required.
b7
b6 b4
b3 b2
b1
b0
0
0 0 0: CPU
0 1 1: DTC/DMACA
1 1 0: EDMAC
1 1 1: EXDMAC
others: Setting prohibited
0
0: Timeout not generated
1: Timeout generated
0: Illegal address access not
made
1: Illegal address access
made
[data2]
The status flags shall be stored according to register BERSR2 format as below.
Specify PDL_NO_PTR if this information is not required.
b15 b3
b2 b0
The upper 13 bits of an address that was accessed when a bus error
occurred (in units of 512 Kbytes).
0
[data3]
The status flags shall be stored according to register SDSR format as below.
Specify PDL_NO_PTR if this information is not required.
b7b5
b4
b3
b2 b1
b0
0
0: Transition/recovery
not in progress
1: Transition/recovery
in progress
0: Initialization sequence
not in progress
1: Initialization sequence
in progress
0
0: Mode register setting not in
progress
1: Mode register setting in
progress
Return value
True.
Category
Bus Controller
Reference
R_BSC_Create, R_BSC_CreateArea, R_BSC_Control
Remarks
Call R_BSC_Control to clear the status registers after reading the status.
R20UT0084EE0112 Rev.1.12 Page 4-62
July. 16, 2014