
Rev.1.00 May 22 2012
REJ09B0566
4
4.2.5 36BBus State Controller R_BSC_GetStatus
5) R_BSC_GetStatus
Synopsis
Read the External Bus Controller status flags.
Prototype bool R_BSC_GetStatus(
uint8_t * data
// A pointer to the data storage location
);
Description
Read the interrupt status
[data]
The status flags shall be stored in the following format:
b7 – b1 b0
-
0: Idle
1: Bus error condition detected
Return value
True.
Category
Bus Controller
Reference
R_BSC_Create
Remarks
• If the flag is set to 1, it shall be automatically cleared to 0 by this function.
Program example
/* PDL definitions */
#include “r_pdl_bsc.h”
/* PDL device-specific definitions */
#include “r_pdl_definitions.h”
void func(void)
{
uint8_t status;
/* Read the flags */
R_BSC_GetStatus(
&status
);
}
Commenti su questo manuale