hello chussana2,
you may refer to Topic 144550, for several ways to access GPIOs. such as, kernel APIs, python scripts, C++ samples.
please also check developer guide, you may refer to Configuring the 40-Pin Expansion Header session by using Jetson-IO python tool to configuration GPIOs.
thanks