+ am7xxx_set_log_level(ctx, log_level);
+
+ ret = am7xxx_open_device(ctx, &dev, 0);
+ if (ret < 0) {
+ perror("am7xxx_open_device");
+ exit_code = EXIT_FAILURE;
+ goto cleanup;
+ }
+
+
+ ret = am7xxx_close_device(dev);
+ if (ret < 0) {
+ perror("am7xxx_close_device");
+ exit_code = EXIT_FAILURE;
+ goto cleanup;
+ }
+
+ ret = am7xxx_open_device(ctx, &dev, 0);
+ if (ret < 0) {
+ perror("am7xxx_open_device");
+ exit_code = EXIT_FAILURE;
+ goto cleanup;
+ }
+
+ ret = am7xxx_get_device_info(dev, &native_width, &native_height, &unknown0, &unknown1);
+ if (ret < 0) {
+ perror("am7xxx_get_info");
+ exit_code = EXIT_FAILURE;
+ goto cleanup;
+ }
+ printf("Native resolution: %dx%d\n", native_width, native_height);
+ printf("Unknown0: %d\n", unknown0);
+ printf("Unknown1: %d\n", unknown1);
+
+ ret = am7xxx_set_power_mode(dev, AM7XXX_POWER_LOW);
+ if (ret < 0) {
+ perror("am7xxx_set_power_mode");
+ exit_code = EXIT_FAILURE;
+ goto cleanup;
+ }
+