/*-----------------------------------------------------------------------------------
!
!                              COPYRIGHT 2015 BY
!                            MegaChips Corporation
!
!------------------------------------------------------------------------------------
! These coded instructions, statements, and computer programs include
! intellectual property and know-how belonging to MegaChips
! Corporaiton ("MCC") and its partner companies.
! Therefore, do not use these specifications for any purpose other than
! the purpose
! expressly agreed to by MCCs customer and MCC.  Also, do not duplicate,
! copy,
! or reproduce these specifications, nor reveal these specifications to
! any third party
! without MCCs prior written consent.
!
*/
/*-----------------------------------------------------------------------------------
  FILE        : rnd_reg.h
  DESCRIPTION : rnd Register
  Revision    : $Rev: 4 $
  Author      : $Author: shirait $
  Date        : $Date: 2015-09-09 15:19:58 +0900 (水, 09 9 2015) $
-----------------------------------------------------------------------------------*/
#ifndef ___RND_REG_H_INCLUDED___
#define ___RND_REG_H_INCLUDED___

#include <stdint.h>

typedef struct _TagRndReg {
	uint8_t soc_keep;
	uint8_t reserve1[3];

	uint8_t load;
	uint8_t reserve2[3];

	uint8_t status;
	uint8_t reserve3[3];
	
	uint8_t rdy;
	uint8_t reserve4[3];
	
	uint8_t osc_en;
	uint8_t reserve5[3];

	uint8_t reserve6[8];
	
	uint32_t trng_out[16];

}RndReg;

#define RND_REG_BASE (0x40001000u)
#define RNDR (*(volatile RndReg*)(RND_REG_BASE))


#endif // ___CTL_REG_H_INCLUDED___
