<commit_before>/*
 * gbcam.h
 *
 *  Created on: 30/nov/2014
 *      Author: giacomo
 */

#ifndef GBCAM_H_
#define GBCAM_H_


/*
 * Configuration
 */
#define IMAGE_WIDTH	16
#define IMAGE_HEIGHT	16

/*
 * Defines
 */
#define	 IMAGE_SIZE	IMAGE_WIDTH * IMAGE_HEIGHT
#define PIXSKIP		16128 / IMAGE_SIZE


/*
 * Typedefs
 */
typedef enum {
	SLOW = 0,
	FAST = 1
} CLOCKSPEED;

/*
 * Function prototypes
 */
void CAM_init(void);

void CAM_reset(void);

void CAM_loadRegister(uint8_t address, uint8_t data);

void CAM_startCapture(void);

void CAM_pauseCapture(void);
void CAM_resumeCapture(void);

int CAM_imageAvailable(void);
uint8_t* CAM_readImage(void);


#endif /* GBCAM_H_ */
<commit_msg>Temporary fix for wrong commit 8c595bf<commit_after>/*
 * gbcam.h
 *
 *  Created on: 30/nov/2014
 *      Author: giacomo
 */

#ifndef GBCAM_H_
#define GBCAM_H_


/*
 * Configuration
 */
#define IMAGE_WIDTH	128
#define IMAGE_HEIGHT	126

/*
 * Defines
 */
//#define	 IMAGE_SIZE	IMAGE_WIDTH * IMAGE_HEIGHT
//#define PIXSKIP		(16128 / IMAGE_SIZE) - 1

#define IMAGE_SIZE		16128
#define PIXSKIP				0


/*
 * Typedefs
 */
typedef enum {
	SLOW = 0,
	FAST = 1
} CLOCKSPEED;

/*
 * Function prototypes
 */
void CAM_init(void);

void CAM_reset(void);

void CAM_loadRegister(uint8_t address, uint8_t data);

void CAM_startCapture(void);

void CAM_pauseCapture(void);
void CAM_resumeCapture(void);

int CAM_imageAvailable(void);
uint8_t* CAM_readImage(void);


#endif /* GBCAM_H_ */

{'fraction_non_alphanumeric': 0.11736444749485243, 'fraction_numerical': 0.0363761153054221, 'mean_word_length': 3.925675675675676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '488189', 'n_tokens_mistral': 651, 'n_tokens_neox': 587, 'n_words': 128}