Include nand library

Hello friend, how to include function in library for Nand? I configuration my microcontroller from CubeMx for Nand memory and generated code, setup is bank and etc. In open code in Keil is including nand library, but is not in library is not include banks and etc.