| 
									
										
										
										
											2025-07-26 13:22:07 -04:00
										 |  |  | from typing import NamedTuple, Optional | 
					
						
							| 
									
										
										
										
											2025-07-26 00:30:19 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class GrinchRamData(NamedTuple): | 
					
						
							|  |  |  |     ram_address: int | 
					
						
							| 
									
										
										
										
											2025-07-26 13:22:07 -04:00
										 |  |  |     value: Optional[int] = None #none is empty/null | 
					
						
							|  |  |  |     # Either set or add either hex or unsigned values through Client.py | 
					
						
							|  |  |  |     # Hex uses 0x00, unsigned are base whole numbers | 
					
						
							|  |  |  |     binary_bit_pos: Optional[int] = None | 
					
						
							| 
									
										
										
										
											2025-07-26 00:30:19 -04:00
										 |  |  |     bit_size: int = 1 | 
					
						
							| 
									
										
										
										
											2025-08-16 02:26:25 -04:00
										 |  |  |     update_existing_value: bool = False | 
					
						
							|  |  |  |     max_count: int = 0 |